what is function to find out adjoint of matrix............is there any command.......

 Akzeptierte Antwort

I don't think there is a function but you can always do:
det(A)*inv(A)

Weitere Antworten (3)

asuescun
asuescun am 15 Nov. 2017

2 Stimmen

Hi, you can't use "det(A)*inv(A)" with a singular matrix to get its adjoint.
milad yusefi
milad yusefi am 20 Nov. 2017

0 Stimmen

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';

Produkte

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by