Why do I get a warning or error regarding "Executing startup failed in matlabrc" and "MATLAB:mpath:PathAlterationNotSupported" when I start my standalone application?
Show older comments
When I try to run my standalone executable generated by MATLAB Compiler, or standalone package generated by MATLAB Compiler SDK, I may get warnings or errors that mention "startup" and "MATLAB:mpath:PathAlterationNotSupported".
The warning could be:
Warning: Executing startup failed in matlabrc.
This indicates a potentially serious problem in your MATLAB setup, which
should be resolved as soon as possible. Error detected was:
MATLAB:mpath:PathAlterationNotSupported
Modifying the search path is not supported by MATLAB Compiler. Remove functions
that modify the search path from your MATLAB code. To make files visible to your
deployed application, add the parent folder to your MATLAB session.
The error could be:
Error using matlabpath
Modifying the search path is not supported by MATLAB Compiler. Remove functions
that modify the search path from your MATLAB code. To make files visible to your
deployed application, add the parent folder to your MATLAB session.
Error in path (line 109)
Error in addpath (line 86)
Error in startup (line 2)
MATLAB:mpath:PathAlterationNotSupported
Accepted Answer
More Answers (0)
Categories
Find more on Startup and Shutdown 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!