From: Andy on
"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 &#8220;thin out&#8221; 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

% For example:

n=10002;
A=1:n;
v=1:floor(n/5);
v=5*v;
A=A(v);