MATLAB: Not getting all numerical results

differential equations

Hi
I developped a programme of 14 differential equations and two algebraic equations but when I run the programme I got the numerical solutions (graphs) of only 9 equations and I got an error of the subplot number 10. I received the following message: "Error in parametersmodel (line 35)
subplot(3,3,10),plot(t,y(:,10));".
I used the code "ode15s. So, there is a limit of equations for each code? If yes Which one I should use?
Thanks

Best Answer

The number of differential equations or algebraic equations does not matter for ode15s.
Each column of the second output of the ode*() functions corresponds to a state variable -- so it is the number of state variables that is important, not the number of equations.