Filter löschen
Filter löschen

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

5 Ansichten (letzte 30 Tage)
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.

Akzeptierte Antwort

Voss
Voss am 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.

Weitere Antworten (0)

Kategorien

Mehr zu Interactive Control and Callbacks finden Sie in Help Center und File Exchange

Produkte


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by