Errors in executable file which is created from AppDesigner .
이전 댓글 표시
Hi,
I have created one app which takes input as a path and if you press the button it loads specific .mat file from that path.
This is how app looks like

When I run .exe / standalone app , it gives following error in cmd.
'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.'
How to get ride of this issue ? or is it not possible in standalone app ?
this is how main part of code look like

댓글 수: 1
Please don't include code in your posts as an embedded image. Post the code in a code well, e.g.,
a=1;
b=2;
c=a+b
채택된 답변
추가 답변 (2개)
Matt J
2021년 9월 1일
Remove this line from your code
addpath(direct)
It's not doing anything anyway.
카테고리
도움말 센터 및 File Exchange에서 MATLAB Compiler에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!