- https://www.mathworks.com/help/simulink/ug/how-to-specify-the-sample-time.html#br0zrv5
- https://stackoverflow.com/questions/23127431/matlab-simulink-how-to-specify-a-definite-solver-step-size-for-every-iteration
- https://www.mathworks.com/matlabcentral/answers/511415-how-to-modify-step-size-using-my-custom-simulink-block
Is it possible to schedule the sample time in Simulink model? for ex. from t=0 to t=10ms time step=1e-5, for t>10ms time step= 1e-9
1 次查看(过去 30 天)
显示 更早的评论
sample time in Simulink model:
from t=0 to t=10ms time step=1e-5,
for t>10ms time step= 1e-9
0 个评论
回答(1 个)
Yash
2025-2-16
编辑:Yash
2025-2-26
No, as per my understanding, parameters such as step size and sample time are non-tunable during the simulation and cannot be modified. To use a different step size or sample time you would have to restart the simulation. Refer to these resources for more info:
1 个评论
Walter Roberson
2025-2-26
You can use sim() with a StopTime of 10 ms with the time step having been configured to 1e-5. Then you would configure time step of 1e-9 and sim() with a StartTime of 10 ms and a StopTime as appropriate.
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!