按照完MATLAB以后,重新安装的VS版本往往不能成为默认的MATLAB编辑器,需要修改默认编辑器。其常见错误如下:
错误使用 mex
mismatch detected for '_MSC_VER': value '1600' doesn't match value '1800‘
修改方式如下:
打开Matlab,在 command window 中输入 mex -setup
其输出如下:
——————————————————————————————————
MEX 配置为使用 'Microsoft Visual C++ 2010 (C)' 以进行 C 语言编译。
Warning: The MATLAB C and Fortran API has changed to support MATLAB
variables with more than 2^32-1 elements. In the near future
you will be required to update your code to utilize the
n