Inverse of matrix multiplied by vector

15 visualizzazioni (ultimi 30 giorni)
Mohamed Amine Mouajib
Mohamed Amine Mouajib il 15 Dic 2021
Modificato: Jan il 15 Dic 2021
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

Risposte (1)

Jan
Jan il 15 Dic 2021
Modificato: Jan il 15 Dic 2021
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

Categorie

Scopri di più su Loops and Conditional Statements in Help Center e File Exchange

Prodotti


Release

R2015a

Community Treasure Hunt

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

Start Hunting!

Translated by