22BEC0052_Controlsy​stems_DA_1

Version 1.0.0 (1.21 KB) by Janaanie
1. Determine transpose, inverse values of given matrix.
1 Download
Updated 15 Sep 2024

View License

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 (2024). 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 Linux
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0