The App Designer makes like 50 copies of my graphs and pastes them on top of each other everytime I open the app for editing. I have to go through the trouble of deleting all of them every single time. This happened to me on 2017a, 2018a and 2018b versions.

댓글 수: 1

Ijab Zhan
Ijab Zhan 2019년 1월 30일
Do you mean opening the app into App Designer? If that's the case, you may need to contact tech support with your app, and somebody could help to get your app reparied.
The fix to duplicated components in opening App Designer apps has been in R2019a, and will also be included in R2018b Updates 3.

댓글을 달려면 로그인하십시오.

답변 (1개)

Cris LaPierre
Cris LaPierre 2019년 1월 18일

0 개 추천

Would need to see your code that generates the plot to be certain, but I suspect you have hold on, and use the plot command every time to create your plot.
You could try adding cla at the start of your plotting code
cla(ax)
A more elegant solution is to create the first plot in your startup function, and then use the handle to the plot to update the plotted data. See an explanation here.

댓글 수: 2

Paranjay Deshpande
Paranjay Deshpande 2019년 1월 18일
Hi Cris,
I am not using hold on at all. The problem is that it duplicates app.UIAxes and does not duplicate the plot on it. So basically it creates multiple app.UIAxes. This does not happen when I am running the app in the App Designer but when I close the App and reopen it for editing, I find my app with multiple duplications of app.UIAxes.
Thank You.! :)
Cris LaPierre
Cris LaPierre 2019년 1월 18일
Have you tried restarting your computer?
If after doing that you still get the same behavior, could you share your mlapp file? Attach it to your post.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

제품

릴리스

R2018b

질문:

2019년 1월 18일

댓글:

2019년 1월 30일

Community Treasure Hunt

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

Start Hunting!

Translated by