App Designer: Can't delete Figure "app.UIAxes" permanently
20 views (last 30 days)
Show older comments
I have an app in App Designer and put an Component called UIAxes on the canvas. Now I want to delete it. I can delte it, but after saving and loading its back. How to fix this?
5 Comments
Adam Danz
on 24 Mar 2020
I understand the problem (though, not the cause of the problem).
When you reopen the app and the deleted UIAxes is back again, does line 18 still cause an error?
Could you put the mlapp file in a zip file and attach it?
Accepted Answer
Adam Danz
on 25 Mar 2020
Edited: Adam Danz
on 25 Mar 2020
This is really bizarre.
Source of the problem
The problem is caused by the 2nd UIAxes not having a handle assigned in the app. Open the app in appdesigner and look at the Component Browser. I have no idea how this happened. Do you have any recollection of how this happened?
Solution
First, store a backup of your app.
1) Right-click the component in the image above, select "Rename" and provide it with a unique handle name (I've named it UIAxes2).
2) After doing step 1, the handle to the UIAxes will now be represented in the properties section in code-view. However, this causes another very odd problem. The name you assign to the axes will appear on every line of editable code in your app. You must remove all of those lines (you can use ctrl+f to find & replace). Then save the app and the problem should be fixed.
I'm using r2019b (update 2).
I've reported this to the tech team and have attached your modified app to my answer so they can access it (Case #04114127).
3 Comments
Adam Danz
on 15 May 2020
Thanks for the feedback, Mustafa. It's good to know the solution is generalizable.
More Answers (0)
See Also
Categories
Find more on Develop Apps Using App Designer 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!