Multiplying and finding inverse of a matrix.
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
I = [9; -3; 10; -10]
G = [0.3 0 -0.2 0; 0 0.25 -0.25 0; -0.2 -0.25 0.95 0; 0 0 0 0.05]
Invs(G)*I
0 comentarios
Respuestas (2)
Sam Chak
el 18 de Nov. de 2023
Hi @Omar
Just wanted to share the three methods I sometimes use to compute the matrix inverse.
G = [0.3 0 -0.2 0;
0 0.25 -0.25 0;
-0.2 -0.25 0.95 0;
0 0 0 0.05]
%% Method 1: direct inverse function
inv(G)
%% Method 2: Matrix left division
G\eye(length(G))
%% Method 3: Reduced row echelon form
A = [G eye(length(G))];
R = rref(A)
iG = R(:,5:end)
0 comentarios
Ver también
Categorías
Más información sobre Linear Algebra en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!