I have noticed the error only occures when I debug the code but when I call the function it seems to be working fine. however another problem i have is that when I give a default value to variables by using nargin< , I get the message "too many input arguments" . by using nargin the value given...
thanks for the reply jhae2.718
i am calling the ode like [t,a]=ode45('canti',[0 20],[0.1;0],[],zeta,epsi,lampda,z,omega)
sorry i didnt understand what you meant by "post the code in tags..." and btw i am not using pi (π) am using ϕ (phi)
hi
i am trying to solve second order ODE in MATLAB but when i write my scribt and call into the command window using ode45 i get input argument "a" is undefined i have spent so much time trying to figure out what the problem is but unsuccessful.
the function is as follows
function...