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

12 vues (au cours des 30 derniers jours)
Stone Lin
Stone Lin le 19 Jan 2017
Commenté : waterhaha le 18 Mar 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 commentaires
manmai
manmai le 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 le 18 Mar 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?

Connectez-vous pour commenter.

Réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by