From: Greg Heath <>
Newsgroups: comp.soft-sys.matlab
Subject: Re: SVD which one is which
Date: Sat, 27 Dec 2008 09:43:47 -0800 (PST)
Lines: 36
Message-ID: <>
References: <gj3n2r$akd$>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: 1230399827 14220 (27 Dec 2008 17:43:47 GMT)
NNTP-Posting-Date: Sat, 27 Dec 2008 17:43:47 +0000 (UTC)
Injection-Info:; posting-host=; 
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; 
	Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; 
	.NET CLR 2.0.50727; .NET CLR 3.0.04506.30; Seekmo 10.0.341.0),gzip(gfe),gzip(gfe)
Xref: comp.soft-sys.matlab:508908

On Dec 26, 5:50 pm, "Ali Saleemi" <> wrote:
> SVD gives eigenvectors in descending order, is there
> anyway to know which eigen vector belongs to which
> variable in the original matrix?

In general, SVD and SVDS yields singular vectors of A,
not eigenvectors of A. The  nonnegative real singular
values and corresponding singular vectors are
ordered w.r.t ascending singular values in SVD.
I am not sure about the ordering in SVDS..

doc SVD
dov SVDS

In general, each singular vector is a linear combination of
all the variables. In real-world-problems, it is rare that
singular vectors are coordinate aligned.

The singular vectors of A are eigenvectors of
A*A^T and A^T*A.

> I dont have a square matrix
>  in my original data so I cannot use eig() which according
> to my knowledge does not sort the eigenvectors.

If A is square, both EIG and EIGS  yield eigenvectors
of A.  If A is symmetric, the eigenvalues are real and the
corresponding eigenvectors are sorted (ascending for EIG
and descending for EIGS).

doc EIG
doc EIGS

Hope this helps.