MATLAB Answers


automatic Matlab to run each 10 min

Asked by Niki
on 19 Jul 2013


I would like to ask matlab to perform the same calculation each 10 minute for example. do you know how to do so? for example,

each 10 minute, Load a marix , then perform a fucntion, then save the time and result


Do you want MATLAB to be open the whole time? If not, what OS are you using? How exact do you need the timing to be? How long does the calculation take? What should happen if there are errors?

on 19 Jul 2013

Yes, I want it to be open for all the time lets say I want it start to load each 10 minute , do the calculation and then save it , then again over and over There will not be any error



No products are associated with this question.

2 Answers

Answer by Sean de Wolski
on 19 Jul 2013

doc timer

From within MATLAB if you want to use the same session.


Answer by Daniel Shub
on 19 Jul 2013

You could do

while true


Join the 15-year community celebration.

Play games and win prizes!

Learn more
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!