How to Solve State Homogeneous Differential Equations Using MATLAB?

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
4 replies · 3K views
archanas4743
Messages
1
Reaction score
0
can anyone 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)
 
Physics news on Phys.org
you can search the m files on matworks, or use the differential equations simulink
 
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
 
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.