Code covered by the BSD License  

Highlights from
subspace.m

3.5

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

subspace.m

by Andrew Knyazev

 

12 Nov 1999 (Updated 19 May 2009)

Angle between subspaces.

| 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.
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
mathematics Andrew Knyazev 22 Oct 2008 06:31:06
subspaces Andrew Knyazev 22 Oct 2008 06:31:06
angle Sergey 19 Apr 2010 09:49:49

Contact us at files@mathworks.com