Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Differential equation solution

  1. May 27, 2013 #1
    can any one help me with matlab code for for solving a state homogeneous differential

    X=state vector

    Xdot(t)=AX(t)+BU(t) U is the control input

    i have the values of A and B ,i need the solution for X(t)
  2. jcsd
  3. May 27, 2013 #2

    Simon Bridge

    User Avatar
    Science Advisor
    Homework Helper

    Welcome to PF;
    Probably - what have you tried?
  4. May 30, 2013 #3
    you can search the m files on matworks, or use the differential equations simulink
  5. May 30, 2013 #4
    A and B are invertibles so inv(A) and inv(B) exists, do the algebra of matrices to get X(t) in a side, but here d/dtX(t) exist, so you can solve the homogeneous system first by assuming that the control input is the zero vector, the general solution of elements are x_i(t)=Constant_i*exp(lamda_i*t), i=1,2,...N
  6. May 30, 2013 #5
    you solve the characteristic equation which is exactly solvable up to 4th degree after you can refer to numerical methods to find the roots lamdas.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook