Hi guys, I have made an Euler solution, an RK2 and an RK4 solution for the same differential equation and now i want to put these all in one function so that i can choose from the command line which solution i want. I have tried several things, but I can't figure it out. Can anyone help me?
These are the codes for Euler, RK2 and RK4:
function x = EULER(k,M,h,D)
function x = rk2(k,M,N,D)
function x = rk4(k,M,N,D)