MATLAB: How to stop/delay execution for specified time

MATLABsimulink

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

Best Answer

pause(1)