Close a figure when a button is pressed or when a certain elapses

22 次查看(过去 30 天)
Hello I'd like to know if there is a way to erase a figure when either a button is pressed or a specific period of time elapses.

采纳的回答

Rik
Rik 2020-1-31
You can set 'close(gcbf)' as the callback of your button, and you could use a timer object to trigger a close as well.

更多回答(0 个)

类别

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

Community Treasure Hunt

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

Start Hunting!

Translated by