首先在matlab中输入:
mbuild-setup
然后会显示几个存在的编译器(如vc)
但是选择其中一个后,会有问题,如下:
Usage:
MBUILD [option1 ... optionN] sourcefile1 [... sourcefileN]
[objectfile1 ... objectfileN] [libraryfile1 ... libraryfileN]
[exportfile1 ... exportfileN]
Use the -help option for more information, or consult the MATLAB Compiler
User's Guide.
C:\PROGRA~1\MATLAB\R2012A\BIN\MEX.PL: Error: No file names given.
Undefined function or variable 'setup'.
这是因为mbuild 和-setup中间应该加个空格:
所以正确的输入为:
>> mbuild -setupWelcome to mbuild -setup. This utility will help you set up
a default c