|
On Apr 3, 6:39=A0pm, "Roger Stafford"
<ellieandrogerxy...@mindspring.com.invalid> wrote:
> spasmous<spasm...@gmail.com> wrote in message <f01a1a1b-6f88-4218-bea9-30=
a3dee4f...@b6g2000pre.googlegroups.com>...
> > A=3Drand(3,4)
> > [U S V]=3Dsvd(A,'econ'); % correct behaviour
> > size(S)
> > ans =3D
> > =A0 =A0 =A03 =A0 =A0 3
>
> > [U S V]=3Dsvd(A,0); % incorrect behaviour
> > size(S)
> > ans =3D
> > =A0 =A0 =A03 =A0 =A04
>
> =A0 That's not incorrect,Spasmous!
I dont disagree ;) So let me understand - svd(A,0) and svd(A,'econ')
are not the same. I read the documentation and am unclear.
"[U,S,V] =3D svd(X,0) produces the "economy size" decomposition. If X is
m-by-n with m > n, then svd computes only the first n columns of U and
S is n-by-n.
[U,S,V] =3D svd(X,'econ') also produces the "economy size"
decomposition. If X is m-by-n with m >=3D n, it is equivalent to svd(X,
0). For m < n, only the first m columns of V are computed and S is m-
by-m."
|