How to stop popping up of plot figures unnecessarily in Matlab app designer?
Ältere Kommentare anzeigen
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
Weitere Antworten (1)
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
am 9 Mär. 2023
Kevin Holly
am 9 Mär. 2023
change
plot(boundary(:,2), boundary(:,1),'r-', 'LineWidth', 1);
to
plot(app.UIAxes,boundary(:,2), boundary(:,1),'r-', 'LineWidth', 1);
Amlan basu
am 9 Mär. 2023
Kevin Holly
am 9 Mär. 2023
In that case, remove the line completely.
Amlan basu
am 9 Mär. 2023
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.
Kategorien
Mehr zu Axis Labels finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!