From: the cyclist on 21 Dec 2009 16:15 "frank millo" <frank.millo(a)gmail.com> wrote in message <hgonoq$o3d$1(a)fred.mathworks.com>... > Hello, > > I have a Nx3 matrix (N>10e5). I would like to “thin out” the point cloud somewhat and unclutter it by extracting only every other or 5th point and saving it. > Is there a way to do this without a loop? > > Thanks for the help, > > FM >> M1 = rand(100000,3); % original matrix >> M2 = M1(5:5:end,:); % thinned matrix the cyclist
|
Pages: 1 Prev: Reduce elements in a point cloud Next: Mapping a random walk to another spatial grid |