I want to count the reverse matrix in matlab in the following way:
and something wrong returns, while the following way is ok:
Any hint of what needs to be changed in the first code?
A=[2 1 1; 0 2 2; 0 0 4];
iA=inv(A);
A*iA
iA*A
and something wrong returns, while the following way is ok:
A=[2 1 1; 0 2 2; 8 8 4];
Id=eye(size(A));
iA=A\Id
iA2=inv(A)
norm(iA*A,1)
norm(iA-iA2,1)
Any hint of what needs to be changed in the first code?
