Is it possible to convert between ComponentContainer and AppBase classdef files?
3 ビュー (過去 30 日間)
古いコメントを表示
Appdesigner does not admit editing of the classdef line.
¿Is there a built-in or otherwise recommended method for converting between ComponentContainer- and AppBase-derived classes?
E.g., ¿could this be done by exporting to .m file, editing, and then somehow importing as .mlapp?
One workaround for the component→app direction, is to wrap the component in a trivial application.
0 件のコメント
回答 (1 件)
Harsh Sanghai
2023 年 3 月 9 日
Hi,
You can export the App Designer project as a MATLAB file (.m) and edit the classdef line in the exported file. Once you've made the necessary changes, you can import the updated MATLAB file back into App Designer using the "Import" button on the "Apps" tab.
Alternatively, you can create a new App Designer project based on the ComponentContainer or AppBase class, and then copy and paste the relevant code from the old project into the new one.
参考
カテゴリ
Help Center および File Exchange で Develop Apps Using App Designer についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!