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

6 次查看(过去 30 天)
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.

采纳的回答

Voss
Voss 2023-2-15
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.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Interactive Control and Callbacks 的更多信息

产品


版本

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by