A smarter way to do this... [message #49593] |
Mon, 07 August 2006 15:32 |
ChiChiRuiz@gmail.com
Messages: 32 Registered: October 2005
|
Member |
|
|
Hi all,
I'm looking for a smarter way to solve the following problem... any
help is appreciated..
I have an array of structures with a specified size as follows : info =
replicate({name, label:'', vector:floarr(1000)}, size)
Each structure has 2 fields, the parameter and a vector: info[i] =
{name, 'ParameterName', ParameterVector}. (Note: i cannot change this
format)
for example, info[0] = {name, 'paramA', vectorA}
info[1] = {name, 'paramB', vectorB}
...
My goal is make a vector with its own parameter name:
paramA = vectorA
paramB = vectorB
but it can be tedious when the "size" is large...don't really want to
list them for 100 times. Is there a smarter/easier way to loop this?
or I'll have to list it by hand how ever many "size" times?
-Angie
|
|
|