How to save and load all the states of checkboxes and etc
Ältere Kommentare anzeigen
Helllo ,
I'm trying to save and load usin the save() and load() functions , the second argument is the "variables" , if I want to save 30 variables it means i have to staticly write all of them in save and load functions , is there any other way to save ALL of the variables and load all of them? i mean i want to make few configurations by names , firstConfiguration.mat , secondConfiguration.mat , and when i load them , instantly it loads the checkboxes that there is in the configuration
4 Kommentare
"is there any other way to save ALL of the variables and load all of them?"
Specifying the variable names is optional: if you do not specify any variable names then SAVE will save all variables from the calling workspace. You might also find the -REGEXP syntax useful.
Ron
am 15 Sep. 2022
Konrad
am 15 Sep. 2022
Hi Ron,
are you using the App Designer to create a GUI? And you want to load the state of your GUI components (like checkboxes) from a file?
Ron
am 15 Sep. 2022
Akzeptierte Antwort
Weitere Antworten (1)
Image Analyst
am 27 Nov. 2024
0 Stimmen
See the Official Mathworks support answer: https://www.mathworks.com/matlabcentral/answers/523768-how-to-save-restore-state-of-app-designer-app?s_tid=ta_ans_results
Kategorien
Mehr zu Update figure-Based Apps finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!