subspace
Measure of distance (angle) between two subspaces spanned by columns of matrices.
📝 Syntax
d = subspace(A, B)
📥 Input argument
A - matrix whose columns span the first subspace (real or complex).
B - matrix whose columns span the second subspace (real or complex).
📤 Output argument
d - scalar measure of distance between the column spaces of A and B. d = 0 indicates identical subspaces; larger values indicate larger separation.
📄 Description
subspace computes a scalar measure of the distance between the subspaces spanned by the columns of matricesA andB. The value is derived from the principal angles between the two subspaces (computed from orthonormal bases of the column spaces). This measure is useful to quantify how close two column spaces are; it is zero when the subspaces coincide.
Used function(s)
orth
💡 Example
🕔 History
1.15.0
initial version
Last updated
Was this helpful?