</x-tad-smaller><x-tad-smaller>if</x-tad-smaller><x-tad-smaller> nargout>1, z = center(X)*pc; end
</x-tad-smaller><x-tad-smaller>if</x-tad-smaller><x-tad-smaller> nargout>2, w = diag(D); end
</x-tad-smaller><x-tad-smaller>if</x-tad-smaller><x-tad-smaller> nargout>3, Tsq = sumsq(zscore(z),2); end
to compute principal component analysis. I've tried this function on a Linux Mandrake 10.1 operating system with octave 2.1.64 compiled from sources and octave 2.1.57 compiled from sources on a Mac OS 10.3.6 (Panther).
Obviously the result of the transformed data differs from one version to another. Is it due to a different implementation of the svd function ?