How to solve matrices with 6 unknowns?

조회 수: 3 (최근 30일)
Mr. NailGuy
Mr. NailGuy 2017년 11월 1일
댓글: Mr. NailGuy 2017년 11월 1일
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)]

채택된 답변

KSSV
KSSV 2017년 11월 1일
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
KSSV
KSSV 2017년 11월 1일
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 2017년 11월 1일
Hi KSSV, This is a great help. Thank you so much! It worked.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Mathematics에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by