Azzera filtri
Azzera filtri

Check/Uncheck box in app designer after opening and closing a secondary figure

6 visualizzazioni (ultimi 30 giorni)
I have created an example app that includes a check box. Once it is checked, it will open up a second figure and display data in a table. The problem I am having is that once the user decides to close out of the table figure via the red 'X', the box doesn't go unchecked. As well, if the user decides to close the table figure by unchecking the box in the main figure, the table figure won't close. The checkbox is basically acting like a show/hide box for the table in a seperate figure. I have attached the app file and the data for the table for example. Thank you.

Risposta accettata

Voss
Voss il 15 Feb 2023
See the attached modified app and m-file. See the comments in the code for descriptions of how it works.
In addition to the behavior you specified, I also made it so that when the app is closed, the second figure is also closed if it exists.

Più risposte (0)

Categorie

Scopri di più su Interactive Control and Callbacks in Help Center e File Exchange

Prodotti


Release

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by