필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Matlab and SimMechanics Ode functions

조회 수: 1 (최근 30일)
Chih-Heng
Chih-Heng 2011년 10월 10일
마감: MATLAB Answer Bot 2021년 8월 20일
Hello,
I use both Matlab and SimMechanics to do simulations and compare if they are the same. I noticed that the ode solver for Matlab and SimMechanics are not exactly the same, which causes some differences on the results. Now, I use ode45 for Matlab and ode3 for SimMechanics. Does anyone one know the equivalent solver for ode45 or ode3, or the ode solvers that are equivalent both in Matlab and SimMechanics?
thanks,
Saxon

답변 (1개)

Walter Roberson
Walter Roberson 2011년 10월 10일
When you use different solvers, even if in theory they converge to the same point, in practice the different algorithmic flows, different step sizes, and so on, will result in differences in round-off. If your system is unstable those differences in round-off can get magnified greatly (I think one of the Simulink examples specifically shows an unstable system for illustration.)
Even if the system is stable, if the algorithms are not coded exactly the same way, you will get round-off error. This is inescapable in any finite mathematical system, no matter what precision you use.

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by