Write a MATLAB program for (a) Display the matrix (b) Get the matrix size (c) Get the matrix transpose (d) Inverse matrix (e) Matrix determination (det)
Write a MATLAB program for
A
= 1
|
2
|
3
|
|
4
|
5
|
6
|
|
7
|
8
|
0
|
|
(a)
Display the matrix
(b)
Get the matrixsize
(c)
Get the matrixtranspose
(d)
Inverse matrix
(e)
Matrix determination(det)
Code:
clc;
clear;
A=[1,2,3;4,5,6;7,8,0];
disp('A');
disp(A);
disp('Matrix Size');
disp(size(A));
disp('Transpose Matrix');
disp(A');
disp('Inverse Matrix');
disp(inv(A));
disp('Matrix Determination');
disp(det(A));
Leave a Comment