why simulink has noise while ode45 dose not?

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일

1 개 추천

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개)

카테고리

태그

질문:

2020년 5월 23일

댓글:

2020년 5월 24일

Community Treasure Hunt

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

Start Hunting!

Translated by