how can we perform 6x6 matrix without values to find the inverse and determination
Show older comments
to create a 6x6 matrix and find the inverse and determination of the above matrix without any values
x=[a(1,1) a(1,2) a(1,3) a(1,4) a(1,5) a(1,6);
a(2,1) a(2,2) a(2,3) a(2,4) a(2,5) a(2,6);
a(3,1) a(3,2) a(3,3) a(3,4) a(3,5) a(3,6);
a(4,1) a(4,2) a(4,3) a(4,4) a(4,5) a(4,6);
a(5,1) a(5,2) a(5,3) a(5,4) a(5,5) a(5,6);
a(6,1) a(6,2) a(6,3) a(6,4) a(6,5) a(6,6)]
to find
| X | = ?
X-inv = 1/| X | (adj X)
Accepted Answer
More Answers (2)
Manvi Goel
on 11 Jun 2019
You can calculate the inverse and determinant of a any n*n matrix using these inbuilt functions:
det(x)
inv(x)
Alex Mcaulley
on 11 Jun 2019
If you have the symbolic toolbox, you can do something like this:
syms a11 a12 a21 a22
x = [a11,a12;a21,a22];
det(x)
ans =
a11*a22 - a12*a21
adjoint(x)
ans =
[ a22, -a12]
[ -a21, a11]
inv(x)
ans =
[ a22/(a11*a22 - a12*a21), -a12/(a11*a22 - a12*a21)]
[ -a21/(a11*a22 - a12*a21), a11/(a11*a22 - a12*a21)]
Categories
Find more on Common Operations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!