Why do I receive the error 'cannot start engine' when I run MuPAD in MATLAB R2012b or R2013a?
1 次查看(过去 30 天)
显示 更早的评论
MathWorks Support Team
2013-3-11
编辑: MathWorks Support Team
2015-1-8
After opening a MuPAD notebook and entering the following command:
1+1
I receive the error message:
ERROR: 'Cannot start engine'
Is that a bug?
采纳的回答
MathWorks Support Team
2013-10-18
This could be due to an issue with your PATH environment variable.
Issue the following command to view the PATH variable
getenv('PATH')
The 'cannot start engine' error may occur if the output contains previous installations of MATLAB, extinct directories, or a UNC path name. Use "setenv" to set the PATH variable without these elements and see if MuPAD works. If that does not resolve the issue, try editing the PATH variable with the following command:
setenv('PATH', [matlabroot '\bin\' computer('arch') ';' getenv('PATH')])
Note that "setenv" only resets the path in the current session of MATLAB and not the external system variable PATH stored by the operating system. Therefore, the next time you start MATLAB, the original PATH variable will be restored and you will recieve the same error. To effectively make the change to PATH variable permanent, you can add the appropriate "setenv" command to your startup.m file.
The issue caused by a non-existing UNC path in the PATH environment variable has been fixed in MATLAB R2013a.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 File Operations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!