How can I get the first matrix of this equation?

조회 수: 2 (최근 30일)
piston_pim_offset
piston_pim_offset 2021년 11월 9일
답변: Gargi Patil 2021년 11월 12일
I am trying to get F values. How can l do that?
  댓글 수: 2
Adam Danz
Adam Danz 2021년 11월 9일
It looks like it's straightforward multiplication between a 4x4 matrix and 4x1 vector, unless the curley brackets have some other meaning.
Sargondjani
Sargondjani 2021년 11월 9일
To multiply two matrices:
F=A*B
To define a matrix:
A = [200 0 -200 0; 0 600 0 -600]
et cetera. (use ; to start new row, use comma or space to separate columns)

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

답변 (1개)

Gargi Patil
Gargi Patil 2021년 11월 12일
Hi,
As mentioned in the comments, 2 matrices can be multipled using the * operator. The following code describes the same:
A = [200 0 -200 0; 0 600 0 -600; -200 0 600 -400; 0 -600 -400 1000];
B = [0; 0; 250/11; 375/11];
F=A*B
F = 4×1
1.0e+04 * -0.4545 -2.0455 -0.0000 2.5000
F1x = F(1)
F1x = -4.5455e+03
F2x = F(2)
F2x = -2.0455e+04
%similarly for F3x and F4x

카테고리

Help CenterFile Exchange에서 Additional Math and Discrete에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by