what is function to find out adjoint of matrix............is there any command.......
Afficher commentaires plus anciens
what is command to find adjoint of matrix
Réponse acceptée
Plus de réponses (3)
asuescun
le 15 Nov 2017
2 votes
Hi, you can't use "det(A)*inv(A)" with a singular matrix to get its adjoint.
milad yusefi
le 20 Nov 2017
0 votes
you can also use this function function [b]=adj(a) s=size(a); ac=a; if s(1)~=s(2) disp('input matrix must be square') else for i=1:s(1) for j=1:s(2) a(i,:)=[]; a(:,j)=[]; c(i,j)=det(a); a=ac; end end end for i=1:s(1) for j=1:s(2) if mod(i+j,2)==1 c(i,j)=-c(i,j); end end end b=c';
Nelaturu Karthik
le 25 Juil 2021
0 votes
A=1 2 3,4 5 6
Catégories
En savoir plus sur MATLAB dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!