App Designer standalone Test app not executing

8 ビュー (過去 30 日間)
Bereketab Gulai
Bereketab Gulai 2019 年 10 月 2 日
回答済み: Stefanie Schwarz 2024 年 4 月 17 日
This is the error on 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.
Error in path (line 109)
Error in addpath (line 86)
Error in startup (line 2)
MATLAB:mpath:PathAlterationNotSupported
The test app was created after having the same error with the main application, and contains no code except a button and image controls.
MCR v97 is installed.
Can you tell of any solution?

採用された回答

Bereketab Gulai
Bereketab Gulai 2019 年 10 月 3 日
Found out that Matlab may have including the Startup file in the current directory that was being used for MATLAB. At first, it seemed like MATLAB message was refering to a separate startup file for the standalone app. However, when finally used MATLAB R2018b which provided more clearer error:
  • Undefined variable "at" or class "at.mep.Start.start".Error in startup (line 10)Undefined variable "at" or class "at.mep.Start.start".
This line was only in the MATLAB IDE, why should MATLAB include this startup file or rather not make it an option.
  • The solution was to simply remove the startup file.
  1 件のコメント
Jon
Jon 2020 年 4 月 24 日
For anyone else who stumbles on this answer, I had the same issue with a compiled Matlab program. I fixed my startup.m and continued having the same error, I needed to recompile the executable to include the corrected version of startup.m.

サインインしてコメントする。

その他の回答 (1 件)

Stefanie Schwarz
Stefanie Schwarz 2024 年 4 月 17 日

カテゴリ

Help Center および File ExchangeSearch Path についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by