How do I close an open matlab app and still run the software?

조회 수: 1 (최근 30일)
Daan Decleer
Daan Decleer 2017년 2월 21일
댓글: Rik 2017년 2월 21일
I'm writing a program with the help of an app. But it's to much to put on 1 app so if you push a button another screen pops open (this worked already) and the current one closes. Can anyone help me with that? What I have is this:
function MeteoButtonPushed(app, event)
SiteOpslaan(app); (private function)
Meteo; (opens the new app)
close_Callback(handles); (SHOULD close the current one, but does not work)
end
I'm looking forward to your answers!
  댓글 수: 1
Rik
Rik 2017년 2월 21일
I bet this is because the call to MeteoButtonPushed is still being run, because the call to Meteo is still working (as it should, because it is the app you want to run).
You may be able to fix this by making a wrapper. That wrapper will open your current function and return a flag to the wrapper to either close entirely, or close your current app and start Meteo
I have no real suggestions for code, so I'm adding this as comment instead of an answer. I am also not entirely sure, so someone with more experience with GUIs would be welcome to check this.

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

답변 (0개)

카테고리

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