MATLAB Answers

Start simulink simulation from cetrain time

3 views (last 30 days)
Lila Lotus
Lila Lotus on 1 Aug 2020
Commented: Lila Lotus on 28 Aug 2020
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.
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?


Sign in to comment.

Accepted Answer

Fangjun Jiang
Fangjun Jiang on 26 Aug 2020
See these


Lila Lotus
Lila Lotus on 26 Aug 2020
Thank you for your answer but it is not exactly what i want.
I have already look in those functions. But still have no solution.
I want the start time is for example 30 and not 0 (without simulation from 0 to 30). This really makes sence in my case. But so far I can only start simulation from 0 or continue it.
Fangjun Jiang
Fangjun Jiang on 27 Aug 2020
Open the example model 'vdp', press Ctrl+E, go to Data Import/Export, check to output time as "tout", run
check the value of a.tout. It shows time from 30 to 50.
Can you verify?

Sign in to comment.

More Answers (0)


Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!