# How does the maximum and minimum step size affect the simulation of a model?

24 ビュー (過去 30 日間)
chethan 2013 年 5 月 10 日
コメント済み: Taimur Zaman 2018 年 3 月 18 日
what should be the nominal value for the simulation? and is there any range for particular type of simulation?

サインインしてコメントする。

### 採用された回答

Jordan Monthei 2013 年 5 月 10 日

These values are completely dependent on the simulation that you are running. I will explain what step size is in a quick example. Say you have a range from 0-100 seconds and you would like to sample values across this range of time. If you consider your step size in regards to your sampling time:
• A step size of 10 would take a value every 10 seconds and give you 10 data points to use.
• A step size of 1 would take a value every 1 second and give you 100 data points to use.
A high step size will run quickly but take few data points and conversely a low step size will take many data points but take longer to run as a result.
So as i said before, it depends upon the application.
• If you would like to note precise changes, then it is recommended to use a smaller step size.
• If you are not concerned with precise changes and would like to run faster, then use a larger step size.
##### 4 件のコメント表示非表示 3 件の古いコメント
Taimur Zaman 2018 年 3 月 18 日
I am actually trying to simulate a high frequency bridge with Linear Transformer, and this problems actually happens.

サインインしてコメントする。

### その他の回答 (1 件)

Kaustubha Govind 2013 年 5 月 10 日
It appears that you are using a Variable-step solver, please read Choosing a Variable-Step Solver to understand how the Variable-step Solver changes the step-size to maintain accuracy of the simulation. The min/max step-sizes are the smallest/largest step-sizes the solver can take during the simulation. The documentation for the Max step size and Min step size parameters explains what values the solver picks when the 'auto' settings are used.
##### 1 件のコメント表示非表示 なし
chethan 2013 年 5 月 10 日
Thanx Kaustubha.

サインインしてコメントする。

### カテゴリ

Find more on General Applications in Help Center and File Exchange

### Community Treasure Hunt

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

Start Hunting!

Translated by