From: ImageAnalyst on
Yeah, so? Isn't that what I did?
From: matlab_learner on
u drunk?

what did u do?
From: Loren Shure on
In article <47e539a7-f41e-40bf-a979-
62d0c59d1aac(a)e19g2000prn.googlegroups.com>, cibeji(a)gmail.com says...
> i would need to call each point in an index notation, so like if i do
> L = linspace(-1,1,21) ;
>
> how can I do a loop over each point at L? or specify a condition?
>
> it does look easy but that is the trick to it?
>
> and i need to pass the values of L (at each point) to another variable
> (say w)
> so if i do w(i) = L(i)
>
> matlab says index has to be integer.
>
> please help me. thank u.
>

perhaps this will help (as will reading Getting Started with MATLAB from
the documentation)

for ind = 1:length(L)
w(ind) = something(L(ind))
end

--
Loren
http://blogs.mathworks.com/loren
http://matlabwiki.mathworks.com/MATLAB_FAQ