22BEC0052_Controlsystems_DA_1
Version 1.0.0 (1.21 KB) by
Janaanie
1. Determine transpose, inverse values of given matrix.
clc
clear
close all
x=input("Enter the matrix: ");
% finding transpose
[m,n]=size(x);
t=zeros(n,m);
for i=1:n
for j=1:m
t(i,j)=x(j,i);
end
end
disp("Transverse of the matrix is: ")
disp(t)
% finding inverse
if m==n
if det(x)==0
disp("The inverse does not exist as the determinant is zero")
else
in=inv(x);
disp("Inverse of the matrix is: ")
disp(in)
end
else
disp("The matrix is not a square matrix")
end
Cite As
Janaanie (2026). 22BEC0052_Controlsystems_DA_1 (https://www.mathworks.com/matlabcentral/fileexchange/172740-22bec0052_controlsystems_da_1), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2024b
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0 |
