可以看看下面几个matlab程序。http://www-users.rwth-aachen.de/andreas.hartmann/matlab/mc.htmlhttp://www.physics.upenn.edu/~corlua/projects/dsp_finalProj/node5.htmlhttp://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=136&objectType=file