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

4 visualizaciones (últimos 30 días)
Daan Decleer
Daan Decleer el 21 de Feb. de 2017
Comentada: Rik el 21 de Feb. de 2017
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 comentario
Rik
Rik el 21 de Feb. de 2017
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.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by