title: Extracting the largest set of linearly independent vectors from a set of vectors in matlab
body: <p>I am new to working with matlab. I couldn't find an obvious way to to extract the largest subset of linearly independent vectors from a given set of vectors. </p>
  
  <p>So given a set V = [v1 v2 -- vn]  where dim(vi) >> n (i=1,2,3,....) I need to find a random set of r linearly independent vectors "vi" (where r is maximal), i.e removing ALL (n-r) linearly dependent "vi" vectors from V. Sorry if this is ambiguous but can't find a better way to state it.</p>