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

22 visualizzazioni (ultimi 30 giorni)
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 ?

Risposta accettata

Pratyush
Pratyush il 24 Lug 2023
Modificato: Pratyush il 24 Lug 2023
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;

Più risposte (0)

Categorie

Scopri di più su Develop Apps Using App Designer in Help Center e File Exchange

Prodotti


Release

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by