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

New to MATLAB?

How to stop/delay execution for specified time

Asked by Arun Badigannavar on 6 Dec 2012

I want my MATLAB script to wait for 1 second and continue its execution,,,how to perform it,,,,,for i=1:1:3; set_param('course_speed_position','StartTime','1', 'StopTime', 'i')

simOut = sim( 'C:\Documents and Settings\admin\Desktop\New Folder (5)\02_12_2012(Simulink blocks)\Resolved Models\Speed+Position+Course\course_speed_position.mdl');

end,,In this i wnat to wait my for loop for 1 second and take the next for value



No products are associated with this question.

1 Answer

Answer by Fangjun Jiang

Fangjun Jiang (view profile)

on 6 Dec 2012
Accepted answer


Fangjun Jiang

Fangjun Jiang (view profile)

on 6 Dec 2012

Thanks, Guys! Have a good holiday season!

Image Analyst

Image Analyst (view profile)

on 6 Dec 2012

Yes welcome back, but you might want to find a different place to park your car.

Fangjun Jiang

Fangjun Jiang (view profile)

Contact us