Azzera filtri
Azzera filtri

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

4 visualizzazioni (ultimi 30 giorni)
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 Commento
Rik
Rik il 21 Feb 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.

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Develop Apps Using App Designer in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by