Executing save command in App triggers warning "Unable to save App Designer app object"
Show older comments
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 Comments
Ameer Hamza
on 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
on 27 Sep 2020
Edited: Mario Malic
on 27 Sep 2020
Ameer Hamza
on 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
on 27 Sep 2020
Ameer Hamza
on 27 Sep 2020
Please check the updated comment.
Mario Malic
on 27 Sep 2020
Accepted Answer
More Answers (1)
Ameer Hamza
on 27 Sep 2020
0 votes
This link shows how to disable warning temporarily: https://www.mathworks.com/help/matlab/matlab_prog/suppress-warnings.html
Categories
Find more on Functions in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!