Inverse of matrix multiplied by vector

조회 수: 7 (최근 30일)
Mohamed Amine Mouajib
Mohamed Amine Mouajib 2021년 12월 15일
편집: Jan 2021년 12월 15일
So I have this matrix
K = [ 168.57 4296.29 7250
0 998888.89 241666.67
0 0 1063333.33]
And this vector :
P = [ 0
-3456
3456]
I need to compute U = K^-1 * P

답변 (1개)

Jan
Jan 2021년 12월 15일
편집: Jan 2021년 12월 15일
K = [ 168.57 4296.29 7250; ...
0 998888.89 241666.67; ...
0 0 1063333.33];
P = [0; -3456; 3456];
u = K^-1 * P % Exactly what you have written already
u = 3×1
-0.0316 -0.0042 0.0033
u = inv(K) * P
u = 3×1
-0.0316 -0.0042 0.0033
u = K \ P % This is the fastest and most accurate method
u = 3×1
-0.0316 -0.0042 0.0033

카테고리

Help CenterFile Exchange에서 Numerical Integration and Differential Equations에 대해 자세히 알아보기

제품


릴리스

R2015a

Community Treasure Hunt

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

Start Hunting!

Translated by