Matrix inverse with numbers and letters
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi Everyone, I need to have a matrix inverse of a matrix which is not only made of numbers. How can I have an inverse of my matrix leaving numbers and letters?
0 comentarios
Respuestas (2)
Rosi
el 5 de Mzo. de 2016
I´m not sure about what you want to do, but this could be one way for solving your problem.
syms a b c d
A = [a 1 2 b; 0 4 2 10; 5 1 2 c; 4 d 9 3];
A^-1
0 comentarios
John D'Errico
el 5 de Mzo. de 2016
Editada: John D'Errico
el 5 de Mzo. de 2016
This gets asked over and over again. Nothing stops you from trying it. The symbolic toolbox can do it, within limits.
While the idea is fine for a 2x2 or 3x3, and perhaps you can go a bit further and gain a usable result. I seriously doubt that you might want to bother for a 10x10 matrix though.
syms a11 a12 a21 a22
A = [a11 a12;a21 a22];
inv(A)
ans =
[ a22/(a11*a22 - a12*a21), -a12/(a11*a22 - a12*a21)]
[ -a21/(a11*a22 - a12*a21), a11/(a11*a22 - a12*a21)]
So, trivial for a small matrix. Not so at all if your matrix is large.
0 comentarios
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!