subspace
Angle between two subspaces.
📝Syntax
T = subspace(A, B)
📥Input Arguments
Parameter Description
A vector or matrix (real or single)
B vector or matrix (real or single)
📤Output Arguments
Parameter Description
T scalar: angle.
📄Description

T = subspace(A, B) finds the angle between two subspaces specified by the columns of A and B.

💡Examples
M = [1   1   1   1   1   1   1   1;
1  -1   1  -1   1  -1   1  -1;
1   1  -1  -1   1   1  -1  -1;
1  -1  -1   1   1  -1  -1   1;
1   1   1   1  -1  -1  -1  -1;
1  -1   1  -1  -1   1  -1   1;
1   1  -1  -1  -1  -1   1   1;
1  -1  -1   1  -1   1   1  -1];
A = M(:, 2:4);
B = M(:, 5:8);
R = subspace(A, B)
🔗See Also
orth
🕔Version History
Version Description
1.0.0 initial version
Edit this page on GitHub