compiling failing using MAtlab 2019b

조회 수: 19 (최근 30일)
faran
faran 2020년 6월 25일
답변: Stefanie Schwarz 2024년 4월 17일 10:23
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일 10:23

카테고리

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