subspace.RdFinds the angle between two subspaces.
subspace(A, B)Finds the angle between two subspaces specified by the columns of A and B.
An angle in radians.
Strang, G. (1998). Introduction to Linear Algebra. Wellesley-Cambridge Press.
It is not necessary that two subspaces be the same size in order to find the angle between them. Geometrically, this is the angle between two hyperplanes embedded in a higher dimensional space.