How to Save All App Designer Fields and Values data in to .mat file ?

22 ビュー (過去 30 日間)
Anup Patil
Anup Patil 2023 年 7 月 21 日
編集済み: Pratyush 2023 年 7 月 24 日
Hi,
I am Developing an Application where some Configuration we are setting that same configuration I need to save and if Needed I can Import that in Application , Is there any way to Save All Variables (Values , Fields etc.. ) Will be save in .mat file and restore them ?

採用された回答

Pratyush
Pratyush 2023 年 7 月 24 日
編集済み: Pratyush 2023 年 7 月 24 日
Hi Anup,
I understand that you want to save the confiuration of your app and restore it when required the next time. A similar question has been answered in the following link: How to save/restore state of App Designer app? This could be acheived programatically in the following way :-
  • To save the configuration add the following code to any function using which you want to save the configuration:
B= app.DataPointsEditField.Value;
save("config.mat", 'B');
  • To restore the configuration add the following code to the function using which you want to restore the configuration:
load("config.mat");
app.DataPointsEditField.Value = B;

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

製品


リリース

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by