fork download
  1. @(A)round(inv(A+eps)'*det(A+eps))
  2. ans([-3,2,-5; -1,0,-2; 3,-4,1])
  3.  
  4. @(A)round(inv(A+eps)'*det(A+eps))
  5. ans([1 0; 0 0])
Success #stdin #stdout 0.51s 121920KB
stdin
Standard input is empty
stdout
ans =

@(A) round (inv (A + eps)' * det (A + eps))

ans =

   -8   -5    4
   18   12   -6
   -4   -1    2

ans =

@(A) round (inv (A + eps)' * det (A + eps))

ans =

   0  -0
  -0   1