Executing save command in App triggers warning "Unable to save App Designer app object"
Ältere Kommentare anzeigen
Hi guys,
As the title states, I am getting this error while trying to save propererties/variables in App Designer.
Full warning: Warning: Unable to save App Designer app object. Save not supported for matlab.apps.AppBase objects
I don't like seeing warnings, neither hiding them. So, what would be appropriate way of saving properties in .mat file from App Designer.
Looking into the document for matlab.apps.AppBase
saveobj Saving an instance of an app object is not supported.
6 Kommentare
Ameer Hamza
am 27 Sep. 2020
Are you trying to save all the variables inside the app? Why not just save the variables you need later. Saving the app object does not make much sense.
save('filename.mat', 'variable1_name', 'variable2_name', 'variable3_name')
Mario Malic
am 27 Sep. 2020
Bearbeitet: Mario Malic
am 27 Sep. 2020
Ameer Hamza
am 27 Sep. 2020
See the attached app. I am also doing something similar, but I don't get any error when I run it on my system.
Mario Malic
am 27 Sep. 2020
Ameer Hamza
am 27 Sep. 2020
Please check the updated comment.
Mario Malic
am 27 Sep. 2020
Akzeptierte Antwort
Weitere Antworten (1)
Ameer Hamza
am 27 Sep. 2020
0 Stimmen
This link shows how to disable warning temporarily: https://www.mathworks.com/help/matlab/matlab_prog/suppress-warnings.html
Kategorien
Mehr zu Functions 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!