Why do I receive the error 'cannot start engine' when I run MuPAD in MATLAB R2012b or R2013a?
1 view (last 30 days)
Show older comments
MathWorks Support Team
on 11 Mar 2013
Edited: MathWorks Support Team
on 8 Jan 2015
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?
Accepted Answer
MathWorks Support Team
on 18 Oct 2013
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 Comments
More Answers (0)
See Also
See Also
Categories
Find more on File Operations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!