check if close button of matlab windows clicked(x button)

4 views (last 30 days)
i am searching a way that check if any close button of matlab windows clicked for example close button of neural network or close button of figures, thank you for help
if(%close button clicked)
do some thing
else
do another thing

Answers (1)

Walter Roberson
Walter Roberson on 29 Dec 2017

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!