comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » A smarter way to do this...
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
A smarter way to do this... [message #49593] Mon, 07 August 2006 15:32
ChiChiRuiz@gmail.com is currently offline  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
[Message index]
 
Read Message
Previous Topic: Re: Writing a structure containing empty strings
Next Topic: Re: A smarter way to do this...

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 11:00:13 PDT 2025

Total time taken to generate the page: 0.00399 seconds