Why is the output of inv() and pinv() not equal in Matlab and Octave?
问题 I have noticed that if A is a NxN matrix and it has the inverse matrix. But what the inv() and pinv() function output is different. - My environment is Win7x64 SP1, Matlab R2012a, Cygwin Octave 3.6.4, FreeMat 4.2 Have a look at the examples from Octave: A = rand(3,3) A = 0.185987 0.192125 0.046346 0.140710 0.351007 0.236889 0.155899 0.107302 0.300623 pinv(A) == inv(A) ans = 0 0 0 0 0 0 0 0 0 It's all the same ans result by running the same command above in Matlab. And I calculate inv(A)*A or