为什么matlab调用mcc命令时出错?

来源:百度知道 编辑:UC知道 时间:2024/07/04 14:50:33
不管编译什么总是出现下面的

Warning: Name is nonexistent or not a directory:
D:\MATLAB\R2008b\toolbox\compiler\patch.
Warning: Name is nonexistent or not a directory:
D:\MATLAB\R2008b\toolbox\compiler\patch.
Depfun error: 'Unable to locate magicCreate as a function on the MATLAB path'
Warning: Name is nonexistent or not a directory:
D:\MATLAB\R2008b\toolbox\compiler\patch.
??? Error using ==> mcc
Error executing mcc, return status = 1.

在matlab、toolbox里根本找不到相应的组件,在编译之前要确保编译组件已安装。你装matlab的时候,没有安装Complier,就是matlab的编译器,所以你调用命令的时候显示warrning

一般的时候,如果你安装了Complier,当你输入mcc命令的时候,会出现一个命令,电脑让你学则需要安装的编译器,选完之后,系统会自动安装,然后,就可以编译了!!
你可以重新装一下matlab

mbuild -setup先选择一下编译器再mcc.如果还不行就是编译器安装有问题。