From: us on 3 Apr 2010 05:17 "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
First
|
Prev
|
Pages: 1 2 Prev: for cicle with struct field as a counter Next: Using Slider on a Plot |