Intersection of linear subspaces
Version 1.2.0.0 (1.66 KB) by
Ondrej
Function for finding the basis of the intersection of N subspaces
This function returns the basis of the intersection of N subspaces defined by their bases, and the dimension of this intersection. The input basis vectors must be row vectors!
Example:
A = [1,1,-1,1; %<-basis vector
1,2,-1,2; %<-basic vector
2,1,-1,2];
B = [1,1,1,-1;
1,-1,1,1;
3,3,1,-1];
C = [1,0,1,1;
1,1,1,1]
------
[int,dim] = findIntersect(A,B,C)
int = [1 -1 1 1]
dim = 1
Cite As
Ondrej (2026). Intersection of linear subspaces (https://uk.mathworks.com/matlabcentral/fileexchange/32060-intersection-of-linear-subspaces), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2009b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Mathematics > Linear Algebra >
Find more on Linear Algebra in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
