compiling failing using MAtlab 2019b

4 次查看(过去 30 天)
Hi,
I am trying to compile an algorithm using MAtlab 2019b but I am reaciving this error:
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)
$proc = Start-Process -FilePath "C:\Program Files\MATLAB\R2019b\bin\matlab.exe" -ArgumentList "-automation -nosplash -nodesktop -wait -r "echo ; cd $VDPSDK\Framework\Integration; setVDPSDKPath $VDPSDK; disp(iAnalytics.VDPSDK.getSingleton.getRevision); createExecutable; exit" -logfile $logfile" -Credential $credential -PassThru;
The algorithm was compiled with no issue with Matlab 2018b but it is failing using Matlab 2019b.
Can you tell me any solution?

采纳的回答

Walter Roberson
Walter Roberson 2020-6-25
编辑:Walter Roberson 2020-6-25
The solution is to stick with R2018b.
Modifying the matlab path using addpath is not likely to be supported at any point in the future.
If you are modifying the path at runtime to change MATLAB's idea of which of two routines with the same name are to be invoked, then that is not a great programming practice. I have seen that method used to implement "plug-ins" in some frameworks, but it is still kind of icky.

更多回答(1 个)

Stefanie Schwarz
Stefanie Schwarz 2024-4-17

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by