5.0

5.0 | 1 rating Rate this file 19 downloads (last 30 days) File Size: 4.38 KB File ID: #55

subspacea.m

by Andrew Knyazev

 

20 Sep 2000 (Updated 19 May 2009)

Code covered by the BSD License  

Angles between subspaces.

Download Now | Watch this File

File Information
Description

subspacea(F,G,A) Finds all min(size(orth(F),2),size(orth(G),2)) principal angles between two subspaces spanned by the columns of matrices F and G in the A-based scalar product x'*A*y, where A is Hermitian and positive definite. COS of principal angles is called canonical correlations in statistics.

[theta,U,V] = subspacea(F,G,A) also computes left and right
principal (canonical) vectors - columns of U and V, respectively.

If F and G are vectors of unit length and A=I, the angle is ACOS(F'*G) in exact arithmetic. If A is not provided as a third argument, than A=I and the function gives the same largest angle as SUBSPACE.m by Andrew Knyazev. MATLAB's SUBSPACE.m function is still badly designed and fails to compute some angles accurately.

The algorithm is described in A. V. Knyazev and M. E. Argentati, Principal Angles between Subspaces in an A-Based Scalar Product: Algorithms and Perturbation Estimates. SIAM Journal on Scientific Computing, 23 (2002), no. 6, 2009-2041. See http://www-math.cudenver.edu/~aknyazev/research/papers

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
subspace.m
This submission has inspired the following:
subspace.m

MATLAB release MATLAB 5.2 (R10)
Zip File Content  
Other Files license.txt,
subspacea.m
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
20 Jun 2005 jeff arndt  
Please login to add a comment or rating.
Updates
05 Oct 2001

new revision

28 Jun 2005

minor update for MATLAB R14

19 May 2009

License update to free software (BSD). Comments update.

Tag Activity for this File
Tag Applied By Date/Time
linear algebra Andrew Knyazev 22 Oct 2008 06:31:07
principal Andrew Knyazev 22 Oct 2008 06:31:07
angle Andrew Knyazev 22 Oct 2008 06:31:07
subspaces Andrew Knyazev 22 Oct 2008 06:31:07
canonical correlations Andrew Knyazev 22 Oct 2008 06:31:07
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com