Category "runge-kutta"

Regarding incorporating piecewise function in ode using octave code

Differential equation where M_v is a piecewise function Differential equation where M_v is a piecewise function Piecewise function I have coded the different

how to replace the ode45 method with the runge-kutta in this matlab?

I tried everything and looked everywhere but can't find any solution for my question. clc clear all %% Solving the Ordinary Differential Equation G = 6.6740