Solving coupled ODEs with Runge-Kutta in MATLAB

  • Topic: MATLAB 
  • Thread starter lordtozo
  • Start date
  • Tags Tags
    Matlab Ode
4 replies · 5K views · last reply
lordtozo
Messages
2
Reaction score
0
d(B^2W)/dx = BW

d(B^2W^2)/dx = (W(1-x)^1/n)^-1

more details are found in the attached file

I have a problem and need serious help using runge-kutta in MATLAB to solve ode

please find attached the problem.

I would appreciate it if someone helps me out

Thanks
 
Attachments
Last edited:
Thanks AiRAVATA.

I have already tried that but I get half of my answers to be equal to the solution and the rest having a difference between +1 and +1.5.
 
Use simulink and treat your X variable as time. Then you can use whatever complicated function you want to update. Compute the derivatives and integrate once. Then supply the result as the new X variable to the system.

I hate SIMULINK anyway. But very convenient for such things. Oh by the way, choose a fixed step solver in simulation parameters.