justMoi
Bioengineer
- Apr 26, 2007
- 1
First off, I'm a complete Newbie to Matlab, so please be gentle (quiver...!)
I have an m file script that I want to run every 10 seconds. I managed to figure that bit out using the timer function. i.e.
t = timer('TimerFcn','plotTest','StartDelay',10);
start (t)
This script is part of the function itself,
i.e. 'plotTest', so the the thing just loops and loops ad infinitum. Great!
But how to I stop this? CTL + C is ugly, especially as you have to catch it when executing. I have a feeling it is somthing to do with stopFcn and callbacks (duh ??) but can't penetrate Matlab's arcane help files.
Any help in simplest English for a non-programmer's brain would be much, much, much appreciated.
Thanks,
Laura
I have an m file script that I want to run every 10 seconds. I managed to figure that bit out using the timer function. i.e.
t = timer('TimerFcn','plotTest','StartDelay',10);
start (t)
This script is part of the function itself,
i.e. 'plotTest', so the the thing just loops and loops ad infinitum. Great!
But how to I stop this? CTL + C is ugly, especially as you have to catch it when executing. I have a feeling it is somthing to do with stopFcn and callbacks (duh ??) but can't penetrate Matlab's arcane help files.
Any help in simplest English for a non-programmer's brain would be much, much, much appreciated.
Thanks,
Laura