我用的版本分别是matlab2013b, VS2013
运行matlab函数的时候需要调用cpp文件,配置mex没有VS2013的选项,所以一直没有配置成功,在网上找了好久,终于找到了,在此记录一下。
准备工作:
1、需要下载一个文件,上传到百度云盘了,链接如下:
http://yun.baidu.com/share/link?shareid=104431454&uk=3511863638
2、下载之后将文件解压到matlab的安装路径中,我的是D:\matlab2013bInstall\bin\win32\mexopts\
下面对matlab进行操作:
1、输入命令:mex -setup
2、会提示你:
Please choose your compiler for building MEX-files:
Would you like mex to locate installed compilers [y]/n?
输入n并回车
3、这时候下边的选项里就会出现Microsoft Visual C++ 2013了:
Select a compiler:
[1] Intel C++ 13.0 (with Microsoft Software Development Kit (SDK) linker)
[2] Intel C++ 13.0 (with Microsoft Visual C++ 2010 linke