MATLAB: Solving System ODE with ode45

MATLABodeode errorode45system ode

Hi All, I'm trying to solve a system ODE with ode45. I get this error for my code:
Error in ode45 (line 115) odearguments(FcnHandlesUsed, solver_name, ode, tspan, y0, options, varargin);
Any help is appreciated. I have attached the m.files

Best Answer

With first look, in your function, there are many undefined variables, that are X0, y0, z0, and Ap0.
Related Question