App Designer: Unintended creation of the same Label in my project. After deletion, the same Label grow in number the next time my mlapp file is opened.

조회 수: 1 (최근 30일)
I am creating a GUI in App Designer and have been using Labels and other controls. I created a Label with name "Manning's n" on the canvas. After saving my mlapp file, the same Label grew in number on my canvas the next time the file was opened. The Label(s) keep coming back despite the fact that it was already deleted (with many of its duplicates) the previous time the file was opened and then saved.

채택된 답변

Dhanesh Alagarsamy Chinnaraja
Dhanesh Alagarsamy Chinnaraja 2022년 6월 3일
The issue of duplicating MATLAB App Designer components could happen due to reparenting components. Refer to this EBR for more details: https://www.mathworks.com/support/bugreports/1918110
Howere it had been identified as a bug and fixed in R2019b.
Try upgrading to R2019b or later version of MATLAB to avoid this issue.
If the issue persists, Contact support and share your app with them.

추가 답변 (1개)

Carlos Carriaga
Carlos Carriaga 2022년 6월 3일
편집: Carlos Carriaga 2022년 6월 3일
I am using MATLAB R2020b. The bug is obviously not YET fixed (since you said that the bug shld have been fixed in Version R2019b) . The occurence of this issue / bug could have been the reuse of the Label / Edit Fields components during the process of designing my GUI using App Designer. This practice of re-using / copying components / controls is normal for me when using other programming platforms (C# and VB in Visual Studio). I tried deleting the replicated Label components in my *.mlapp file but they reappear and larger in number the next time I opened my app. I requested a friend who uses R2021b to open my app and resolve the bug by deleting the unintended components but with no success.

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by