Startup GUI as Invisible

조회 수: 5 (최근 30일)
BlaznHotWing
BlaznHotWing 2015년 11월 20일
답변: Richa Gupta 2015년 11월 25일
I am creating a GUI with multiple figures. What I want to do is load both of the figures when the application is executed, so they are ready to go, but I want them to be invisible when they are loading.
I set both of the figures to be invisible, but when I run the .m files to execute the figures, they load and become visible for a second, then they become invisible.
Is there a way to prevent the figures from becoming visible at all until I want them to be visible?

답변 (1개)

Richa Gupta
Richa Gupta 2015년 11월 25일
You can try the "openfig" function and make use of its figure visibility property. Below is an example to create a surface plot and make the figure invisible. Then, save the figure as a MATLAB figure file. Close the invisible figure.
surf(peaks)
set(gcf,'Visible','off')
savefig('MySavedPlot.fig')
close(gcf)
Open the saved figure and make it visible on the screen:
openfig('MySavedPlot.fig','visible')
Hope this helps.

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by