ode4 in simulink and Fourth-order Runge-kutta (RK4) formula

12 Ansichten (letzte 30 Tage)
Stone Lin
Stone Lin am 19 Jan. 2017
Kommentiert: waterhaha am 18 Mär. 2022
Do the results of using simulink ode4 solver to solving differential equations and using matlab RK4 to solving the same differential equation are same? I set the same time step and the initial value. Why did I get different results, there are some error between the two results.
  5 Kommentare
manmai
manmai am 9 Mai 2017
Im sorry, Jan Simon. I already opened new thread (but, perhaps my post also is the answer to the question above, so please dont delete it, thanks).
waterhaha
waterhaha am 18 Mär. 2022
i'd like to know if you find the reason that why the same model and input for SIMULINK with ode4 solver and VScode with classic RK4 algorithm resulting different result?

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by