Prev: Need syntax to execute a matlab.m file from VB6
Next: add_block for name of Blockset with SPACES??!!
From: ImageAnalyst on 21 Feb 2010 00:43 Yeah, so? Isn't that what I did?
From: matlab_learner on 21 Feb 2010 01:57 u drunk? what did u do?
From: Loren Shure on 22 Feb 2010 08:41 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
First
|
Prev
|
Pages: 1 2 Prev: Need syntax to execute a matlab.m file from VB6 Next: add_block for name of Blockset with SPACES??!! |