How to solve matrices with 6 unknowns?

3 views (last 30 days)
I have two matrices as shown below. I need to equate the individual elements (e.g. Ad(1,1)=Af(1,1),Ad(1,2)=Af(1,2),etc.) which forms different set of equations (9 equations to be exact), then afterwards I need to solve these system of equations simultaneously to get the values of K11,K12,K13,K21,K22 and K23. Could you suggest any method to do this in Matlab?
Ad =
-1 0 0
0 0 1
0 -6 -5
Af = [(-K11-1) (-K12+7) -K13;0 0 1;-K21 (-K22-2) (3-K23)]

Accepted Answer

KSSV
KSSV on 1 Nov 2017
Ad = [ -1 0 0
0 0 1
0 -6 -5] ;
syms K11 K12 K13 K21 K22 K23
Af = [(-K11-1) (-K12+7) -K13;0 0 1;-K21 (-K22-2) (3-K23)] ;
eqn = Af==Ad
sol = solve(eqn)
  8 Comments
KSSV
KSSV on 1 Nov 2017
Abar = (1.0e+03)*[0.0000 0.0010 0 -0.0000; 0.4933 -0.0328 -2.7489 0.1412; -0.0000 -0.0000 0.0000 0.0010; 0.1159 -0.0028 -0.6435 0.0081] ;
Bbar = (1.0e+03)*[-0.2854 -0.1664; 6.0167 3.1306; -0.0416 -0.0258; 1.0730 0.5628] ;
Ad =[0 1 0 0; 0 0 1 0; 0 0 0 1; -2.0160 -0.7 -4.41 -3.6];
Kbar = Bbar\(Abar-Ad) ;
Mr. NailGuy
Mr. NailGuy on 1 Nov 2017
Hi KSSV, This is a great help. Thank you so much! It worked.

Sign in to comment.

More 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!