How to stop popping up of plot figures unnecessarily in Matlab app designer?

조회 수: 21 (최근 30일)
My GUI desgned on MATLAB app designer is working perfectly. However, at one stage it is popping out a separate figure which should not appear.
How I can stop that plot figure from popping out?

채택된 답변

Amlan basu
Amlan basu 2023년 3월 9일
I did it using the following command,
figure('Visible', 'off');

추가 답변 (1개)

Kevin Holly
Kevin Holly 2023년 3월 9일
If it is due to a plot function, you need to define the uiaxes for the plot. such as:
plot(app.UIAxes,x,y)
  댓글 수: 6
Amlan basu
Amlan basu 2023년 3월 9일
This worked,
figure('Visible', 'off'); % I put this before and it worked
BWoutline = bwperim(BW6, 8);
Kevin Holly
Kevin Holly 2023년 3월 9일
There is no need to draw the plot if you are not using it. Unless you want to save the figure without displaying it. Could speed up your program by commenting it out.

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

카테고리

Help CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by