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

답변 (1개)

Yash
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
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.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Simulink에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by