T = subspace(A, B)
| Parameter | Description |
|---|---|
| A | vector or matrix (real or single) |
| B | vector or matrix (real or single) |
| Parameter | Description |
|---|---|
| T | scalar: angle. |
T = subspace(A, B) finds the angle between two subspaces specified by the columns of A and B.
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)
| Version | Description |
|---|---|
| 1.0.0 | initial version |