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

50 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Develop 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