Inverse of matrix multiplied by vector

13 次查看(过去 30 天)
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 中查找有关 Loops and Conditional Statements 的更多信息

产品


版本

R2015a

Community Treasure Hunt

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

Start Hunting!

Translated by