I have a Simulink model that's run by the following instruction:
SO = sim('schema','StartTime','current_tmin','StopTime', 'current_tmax','SaveState','on','SaveOutput','on', 'OutputSaveName','yout','SrcWorkspace', 'current', 'FixedStep','h_step');
where all the passed parameters have been defined before this instrutcion. Inside the Simulink model there is a block that takes the clock block as input. By printing this block's value when using h_step = 0.001, for example, I get an output that starts as follows:
clock =
0
clock =
5.0000e-04
clock =
7.5000e-04
clock =
1.0000e-03
clock =
0.0015
My question is: why are the time instants not separated by a quantity equal to h_step?
Thank you,
LT.
1 Comment
Direct link to this comment
https://de.mathworks.com/matlabcentral/answers/481011-difference-between-consecutive-outputs-of-simulink-clock-block-is-not-the-fixed-simulation-step#comment_747522
Direct link to this comment
https://de.mathworks.com/matlabcentral/answers/481011-difference-between-consecutive-outputs-of-simulink-clock-block-is-not-the-fixed-simulation-step#comment_747522
Sign in to comment.