From: lana on
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
From: us on
"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
From: lana on
"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
From: lana on
j=0;
for i=3:size(arry)-3
arry1(j)=arry(i)=;
j=j+1;
end;


i have this code i want to do my question in this code
how do i that
thanks
From: lana on
j=0;
for i=3:size(arry)-3
arry1(j)=arry(i)=;
j=j+1;
end;


i have this code i want to do my question in this code
how do i that
thanks