MATLAB Answers

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

108 views (last 30 days)
what is command to find adjoint of matrix

  0 Comments

Sign in to comment.

Accepted Answer

Shashank Prasanna
Shashank Prasanna on 29 Jan 2013
I don't think there is a function but you can always do:
det(A)*inv(A)

  4 Comments

Show 1 older comment

Sign in to comment.

More Answers (2)

asuescun
asuescun on 15 Nov 2017
Hi, you can't use "det(A)*inv(A)" with a singular matrix to get its adjoint.

  0 Comments

Sign in to comment.


milad yusefi
milad yusefi on 20 Nov 2017
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';

  0 Comments

Sign in to comment.

Sign in to answer this question.

Tags

Products


Translated by