Executing save command in App triggers warning "Unable to save App Designer app object"

53 views (last 30 days)
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

Sign in to comment.

Accepted Answer

Mario Malic
Mario Malic on 27 Sep 2020
Edited: Mario Malic on 27 Sep 2020
It looks like, when one passes an app property into an anonymous function, one gets mentioned warning and wants to save app.x
app.x = optimoptions('fmincon', ...
'OutputFcn', @(x, optimValues,state)CustomOptimPlotFval(app.y), 'Display', 'iter-detailed');
% ^^^^
Without app it works fine.

More Answers (1)

Ameer Hamza
Ameer Hamza on 27 Sep 2020
This link shows how to disable warning temporarily: https://www.mathworks.com/help/matlab/matlab_prog/suppress-warnings.html

Categories

Find more on Develop Apps Using App Designer in Help Center and File Exchange

Products


Release

R2020b

Community Treasure Hunt

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

Start Hunting!