compiling failing using MAtlab 2019b
8 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
faran
am 25 Jun. 2020
Beantwortet: Stefanie Schwarz
am 17 Apr. 2024
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?
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 25 Jun. 2020
Bearbeitet: Walter Roberson
am 25 Jun. 2020
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.
0 Kommentare
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu MATLAB Compiler finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!