why simulink has noise while ode45 dose not?

1 回表示 (過去 30 日間)
hossein
hossein 2020 年 5 月 23 日
コメント済み: hossein 2020 年 5 月 24 日
Hi friends
I have developed a code based on ode45 and a similar simulink. the similink scope shows some noise in the results while ode45 does not. why is there this difference and how can I eleminate the noise from the scope in simulink?
I have attached the figures

採用された回答

rubindan
rubindan 2020 年 5 月 23 日
Without code or Simulink model it is hard to tell what is exacly the reason. In case that the noise is numeric and should not be there, you probably need to change the solver settings in Simulink (Simhlintaion-->Model Cofigureation Parameters->Solver). Try, for e.g., reducing the tolerance.
  1 件のコメント
hossein
hossein 2020 年 5 月 24 日
thanks for the advice, actully reducing max and min of the step size solve the problem, while reducing the tolerance occures an error of singularity.
thanks alot dud.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeOrdinary Differential Equations についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by