Matlab software and Burch coding method are used to achieve the fast generation of the Fresnel hologram and Fourier transform hologram. The experimental principle, methods and procedures are discussed particularly. Combining computer-generated hologram (CGH) with digital holography, the digital reconstruction of hologram was realized. The computer simulation of the whole holographic recording and reconstruction process was achieved. Matlab is proved to be more convenient and flexible in comparison with the traditional algorithm languages and drawing methods, and takes several measures to improve the reconstruction quality. The influence of zero-order and conjugate images is eliminated and clear digital reconstruction images are obtained.