MATLAB: Start simulink simulation from cetrain time

simulink start time

Dear all,
I start simulink simulation multiple time (with clear mex inbetween) and I want to set simulation start time, so that it advances with each simulation.
i.e.
out=sim('mysim','StartTime','100','StopTime','130')
But this start time sims to be ignored.ssGetTime sims to return values starting from 0.
Is it possible to set start simulation time somehow?
Thanks

Best Answer

See these
set_param('vdp','SimulationCommand','start')
set_param('vdp','SimulationCommand','pause')
set_param('vdp','SimulationCommand','continue')
set_param('vdp','SimulationCommand','stop')