Based on an analytical expression of electron dynamical diffraction derived recently, the exit wavefunctions of non-periodic samples have been calculated. The results have shown that the amplitude and phase obtained by the analytical expression were in good agreement with those obtained using the multi-slice method. Besides, the influence of the higher-order Laue zone on the wavefunction for different sample thickness was studied in detail and the results showed that the exit wavefunction is dominated by the zero-order Laue zone. When the sample is very thin, the influence of the higher-order Laue zone should be considered.