Is the ability to use ADDPATH in my deployed application available in MATLAB Compiler 4.11 (R2009b)?
12 次查看(过去 30 天)
显示 更早的评论
MathWorks Support Team
2009-12-4
编辑: MathWorks Support Team
2023-3-27
I am writing an application that utilizes the ADDPATH function, thus adding a directory to the MATLAB search path. When I run this application in MATLAB, it responds consistently. However, when I compile this application, the compiled version does not seem to recognize that the path has been added.
采纳的回答
MathWorks Support Team
2023-3-25
编辑:MathWorks Support Team
2023-3-27
In general, a compiled application should avoid MATLAB commands that directly access or modify MATLAB's internal paths, i.e. the MATLAB path and the MATLAB Java class path. These functions are: ADDPATH, CD, JAVAADDPATH, JAVACLASSPATH, JAVARMPATH, PATH, RMPATH, SAVEPATH.
To learn more about Path Management in Deployed Applications, please refer to the following article:
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Search Path 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!