MATLAB Answers


How to stop/delay execution for specified time

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
on 6 Dec 2012
 Accepted answer



Thanks, Guys! Have a good holiday season!

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

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!