How to create a second command window in my GUI?

I have a GUI currently showing a Welcome Screen and I have a button showing "Press button to start". However when user presses the button, i want a second window showing another screen for the user to use. So how do i create a second command window?
I saw one way in some forums is that we create a second app/GUI, then they call back the first app's command. But I am not sure if this is possible?

댓글 수: 1

Why burden the user with a useless screen they have to click on? Why not just start immediately? Why have an initial screen that they just have to immediately dismiss to get to the main program?
Anyway, you can just call your second GUI by name, in code, after they click the button.

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

답변 (1개)

Bruno Luong
Bruno Luong 2022년 11월 4일
편집: Bruno Luong 2022년 11월 4일
Just let the main GUI (with welcome message and push button) to launch another MATLAB session
system('matlab -r ...')
with -r option of an mfile that runs whatever task to perform. There you have a second command window.

카테고리

도움말 센터File Exchange에서 MATLAB에 대해 자세히 알아보기

제품

릴리스

R2022b

질문:

2022년 11월 4일

편집:

2022년 11월 4일

Community Treasure Hunt

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

Start Hunting!

Translated by