App Designer: Can't delete Figure "app.UIAxes" permanently
20 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Mash
el 24 de Mzo. de 2020
Comentada: Adam Danz
el 15 de Mayo de 2020
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 comentarios
Adam Danz
el 24 de Mzo. de 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?
Respuesta aceptada
Adam Danz
el 25 de Mzo. de 2020
Editada: Adam Danz
el 25 de Mzo. de 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 comentarios
Adam Danz
el 15 de Mayo de 2020
Thanks for the feedback, Mustafa. It's good to know the solution is generalizable.
Más respuestas (0)
Ver también
Categorías
Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!