Executing save command in App triggers warning "Unable to save App Designer app object"
Afficher commentaires plus anciens
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 commentaires
Ameer Hamza
le 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
le 27 Sep 2020
Modifié(e) : Mario Malic
le 27 Sep 2020
Ameer Hamza
le 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
le 27 Sep 2020
Ameer Hamza
le 27 Sep 2020
Please check the updated comment.
Mario Malic
le 27 Sep 2020
Réponse acceptée
Plus de réponses (1)
Ameer Hamza
le 27 Sep 2020
0 votes
This link shows how to disable warning temporarily: https://www.mathworks.com/help/matlab/matlab_prog/suppress-warnings.html
Catégories
En savoir plus sur Functions dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!