Saves App Properties in current state
9 ビュー (過去 30 日間)
古いコメントを表示
In the App i use, i want to save the app properties from the Workspace in a mat-file. When i save it, not the current state but the default state is saved. Is there a way to save the current properties with all the changes made within the UIFigure ?
2 件のコメント
Mario Malic
2021 年 6 月 22 日
I have never tried doing such things, but I doubt someone who did would see this question. I could suggest you to try to save uiaxes handles to the file, and try with https://uk.mathworks.com/help/matlab/ref/savefig.html and https://uk.mathworks.com/help/matlab/ref/copyobj.html
However, I have never tried this.
J. Alex Lee
2021 年 6 月 22 日
Can you clarify if you mean you want to save an app state from the Matlab command line, versus save an app state from within a method of the app itself?
If Matlab command line, are you invoking the app with an output (to hold the app instance)? If not, I would think it is impossible to access the state of the app from outside.
回答 (1 件)
Marcus Heßeling
2021 年 6 月 23 日
3 件のコメント
J. Alex Lee
2021 年 6 月 25 日
編集済み: J. Alex Lee
2021 年 6 月 25 日
maybe you can post a minimum working code example of what you mean.
参考
カテゴリ
Help Center および File Exchange で Workspace Variables and MAT Files についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!