File Exchange

image thumbnail

Intersection of linear subspaces

version 1.2 (1.66 KB) by

Function for finding the basis of the intersection of N subspaces

10 Downloads

Updated

View License

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

Comments and Ratings (1)

Luis Lago

Updates

1.2

small change in description

1.1

small fix

MATLAB Release
MATLAB 7.9 (R2009b)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video