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

18 次查看(过去 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 个评论
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