Equivalent to guidata in App Designer
Show older comments
I converted a GUIDE based applicatoin to App Designer. When I created a new variable in a callback, I would add it to handles. Then at the end of the callback I would issue a guidate command so that my new variable was accessible in other callbacks of the GUI. Example
handles.cpu_str = cpu_str;
guidata(myapp,handles)
The help tells me to not use guidata except with GUIDE and .fig. So how do I make these variables available? The help advised me to change my handles to app.handles, but this had no effect. I tried making a handles a public property. How should I do this
3 Comments
William Day
on 30 Mar 2022
Walter Roberson
on 30 Mar 2022
Can you use the migration tool? https://www.mathworks.com/help/matlab/creating_guis/differences-between-app-designer-and-guide.html
William Day
on 31 Mar 2022
Accepted Answer
More Answers (0)
Categories
Find more on Interactive Control and Callbacks in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!