From: us on
"lana " <files(a)mathworks.com> wrote in message <hp70dq$7qi$1(a)fred.mathworks.com>...
> "us " <us(a)neurol.unizh.ch> wrote in message <hp70al$6f5$1(a)fred.mathworks.com>...
> > "lana " <files(a)mathworks.com> wrote in message <hp6vrm$cj$1(a)fred.mathworks.com>...
> > > hello
> > >
> > > I have an array from 0 to 15 and I want to ignore element from 0 to 3 and calaculate from 4 to 12 and ignore the rest
> > > how can I do that
> > >
> > > thanks in advance
> > > lana lang
> >
> > well(!?)...
> > one of the many solutions
> >
> > % note: ML indexing starts with one...
> > v=rand(1,15);
> > vs=v(4:12);
> >
> > us
>
>
> thanks
> i want another soluation pls

one of the many other solutions

v=rand(1,15);
tf=true(size(v));
tf([1:3,13:end])=false;
vs=v(tf);

us