3.5

3.5 | 2 ratings Rate this file 10 downloads (last 30 days) File Size: 2.66 KB File ID: #54

subspace.m

by Andrew Knyazev

 

12 Nov 1999 (Updated 19 May 2009)

Code covered by BSD License  

Angle between subspaces.

Download Now | Watch this File

File Information
Description

SUBSPACE(A,B) finds the largest angle between two subspaces specified by the columns of A and B. If A and B are vectors of unit length, this is the same as COS(ABS(A'*B)) in exact arithmetic. This is a replacement for MATLAB's SUBSPACE.m Rev. 5.5-5.8 that fails to provide correct answers for angles smaller than e-8 and for Rev. 5.9-5.10.4.3 that fails to provide correct answers for angles close to pi/2.

Acknowledgements

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

MATLAB release MATLAB 7.0.1 (R14SP1)
Other requirements The code does not work and is not intended for sparse data.
Zip File Content  
Other Files license.txt,
subspace.m
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
06 Jan 2008 Ma Chaojie

Good

28 Jul 2009 Elmi bin  
Please login to add a comment or rating.
Updates
16 Nov 2004

The comments are updated to reflect the problems of the most recent MATLAB's SUBSPACE.m code.

16 Nov 2004

The comments are updated to reflect the problems of the most recent MATLAB's SUBSPACE.m code.

16 Nov 2004

The comments are updated to reflect the problems of the most recent MATLAB's SUBSPACE.m code.

16 Nov 2004

The comments are updated to reflect the problems of the most recent MATLAB's SUBSPACE.m code.

16 Nov 2004

The comments are updated to reflect the problems of the most recent MATLAB's SUBSPACE.m code.

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:06
subspace Andrew Knyazev 22 Oct 2008 06:31:06
angle Andrew Knyazev 22 Oct 2008 06:31:06
subspaces Andrew Knyazev 22 Oct 2008 06:31:06
mathematics Andrew Knyazev 22 Oct 2008 06:31:06
 

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