Recent content by mohamed_ali

  1. M

    MATLAB Solving 2nd Order ODE with MATLAB:Input Argument "a" is Undefined

    sorry i don't understand what you mean with vertcat error
  2. M

    MATLAB Solving 2nd Order ODE with MATLAB:Input Argument "a" is Undefined

    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...
  3. M

    MATLAB Solving 2nd Order ODE with MATLAB:Input Argument "a" is Undefined

    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)
  4. M

    MATLAB Solving 2nd Order ODE with MATLAB:Input Argument "a" is Undefined

    thanks for the reply gb7nash yeah it tells me that error is at da_dt=a(2) but i will try to rename the variable "a" to something else
  5. M

    MATLAB Solving 2nd Order ODE with MATLAB:Input Argument "a" is Undefined

    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...
Back
Top