필터 지우기
필터 지우기

how to decide Fixed step size (sample time)

조회 수: 8 (최근 30일)
Maya
Maya 2023년 9월 21일
답변: Shreeya 2023년 9월 21일
How to decide the fixed step size of Simulink model.
How can i calculate the sample time.

답변 (1개)

Shreeya
Shreeya 2023년 9월 21일
I understand that you want to choose a sample time for your simulation and the associated fized step size. Choosing the sampling time depends on the resources available and simulation requirements.
  • Consider the system dynamics, if the blocks change very rapidly with time, you might want to consider a smaller sample time.
  • Choosing a smaller sample time provides with more accurate solutions.
  • On the other hand, if you want the simulation to be less time and resource intensive, you can choose a larger sample time.
Ideally, you can start from a large sample time and decrease it accordingly as per the simulation requirements.
Regarding the step size, if you are using a fixed-step discrete solver with the fixed step size to "auto", the model simulates with the fundamental sample time as the fixed step size. However, if you would want to choose the step size yourself, it must be less than or equal to the smallest sample time in the model and must be a factor of every sample time in the model. Alternatively, refer to the documentation linked below if you have any specific requirements related to the step size:

카테고리

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

제품


릴리스

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by