How can I transfer these equations into MATLAB codes?

1 view (last 30 days)
I am new with MatLab,and I want to know how can I transfer the following vibration equations into MatLab codes.
X''=-(M^-1)*K--(M^-1)*D*X'+(M^-1)*B*u
Sys=ss(A,B,C,D)
And M,K,D,B are matrix that I already get.
Thank you.
  2 Comments
Star Strider
Star Strider on 11 Oct 2018
Please explain what you want to do with the -- in this:
X''=-(M^-1)*K--(M^-1)*D*X'+(M^-1)*B*u
Yuxing Zhang
Yuxing Zhang on 11 Oct 2018
Thank you for asking, now I input the four matrix values and want to know if there's a code that I can use to relate the x'' with x'=Ax+Bu and y=Cx. so that I can get matrix A,B,C,D.

Sign in to comment.

Answers (0)

Categories

Find more on Mathematics in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!