"Modifying the search path on the MATLAB Compiler is unsupported" error with deployed app in R2019a and later
Show older comments
I have an app that I was able to compile and deploy with MATLAB Compiler R2018b and earlier that is no longer able to be deployed when compiled with R2019a. I am getting the error below when I try to deploy my app, and it points me to the functions "addpath" and "path":
Error ID:
---------
'MATLAB:mpath:PathAlterationNotSupported'
--------------
Error Details:
--------------
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)
Why is this error occurring and how do I fix it?
Accepted Answer
More Answers (0)
Categories
Find more on MATLAB Compiler 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!