本人在Matlab环境中配置VC++编译器时,mex –setup和cd(prefdir)命令都能运行,但输入mccsavepath命令后Matlab提示找不到这个函数,这是为什么呢?而且mex –setup运行后也不是显示“Installing the MATLAB Visual Studio add-in……”的信息,而是如下:
>> mex -setup
Please choose your compiler for building external interface (MEX) files:
Would you like mex to locate installed compilers [y]/n? y
Select a compiler:
[1] Digital Visual Fortran version 6.0 in C:\Program Files\Microsoft Visual Studio
[2] Lcc C version 2.4 in E:\MATLAB701\sys\lcc
[3] Microsoft Visual C/C++ version 6.0 in C:\Program Files\Microsoft Visual Studio
[0] None
Compiler: 3
Please verify your choices:
Compiler: Microsoft Visual C/C++ 6.0
Location: C:\Program Files\Microsoft Visual Studio
Are these correct?([y]/n): y
Try to update options file: C:\Documents and Settings\kke\Application Data\MathWorks\MATLAB\R14\mexopts.bat
From template: E:\MATLAB701\BIN\WIN32\mexopts\msvc60opts.bat
Done . . .
>> cd(prefdir)
>> mccsavepath
??? Undefined function or variable 'mccsavepath'.
>>
这又是为什么呢?请各位帮帮忙,谢谢大家!