Alert sound for warning me the program run overtime?
9 views (last 30 days)
Is there any alert function in matlab?
My program will display a message on the command window when reaches the end of every loop. (one loop about 200 seconds)
I want to have alert sound if my matlab program doesn't update over a certain time (e.g. 200 seconds) So, I can be notified that my program has problem (run overtime) in that loop.
Image Analyst on 19 Feb 2015
Try soundsc(). Supply it with a filename of some sound you want it to play.
Andy on 19 Feb 2015
Set up a timer at the start of the code i.e.
At the start of the loop set the timer running: -
To stop the beep sounding if the loop works, immediately before you display the message on the command line, stop the timer