How to stop a "timer" inside a handle "class" when the handle is cleared in MATLAB?
Show older comments
I'm trying to find the best way to stop a timer inside a handle class when the handle is cleared. I am passing the object to the timer which allows me to query the class properties. On running the script "test_class.m", when I perform the "clear" command, the timer keeps on running. The only way that I can prevent this is to call the "delete" command. Is there a way of writing this class with a timer such that a simple "clear" command is able to stop the timer?
Accepted Answer
More Answers (0)
Categories
Find more on Construct and Work with Object Arrays in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!