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

43 Ansichten (letzte 30 Tage)
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?

Akzeptierte Antwort

Amlan basu
Amlan basu am 9 Mär. 2023
I did it using the following command,
figure('Visible', 'off');

Weitere Antworten (1)

Kevin Holly
Kevin Holly am 9 Mär. 2023
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 Kommentare
Amlan basu
Amlan basu am 9 Mär. 2023
This worked,
figure('Visible', 'off'); % I put this before and it worked
BWoutline = bwperim(BW6, 8);
Kevin Holly
Kevin Holly am 9 Mär. 2023
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.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by