安装补丁VS2012MEXSupport.zip
http://www.mathworks.com/matlabcentral/answers/93013-how-can-i-use-microsoft-visual-c-2010-to-create-mex-files-with-matlab-7-10-r2010a