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

Home » Public Forums » archive » Structure in argument #2 -> With IDL ActiveX control
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: structure [message #15147 is a reply to message #13641] Fri, 23 April 1999 00:00 Go to previous message
Pavel Romashkin is currently offline  Pavel Romashkin
Messages: 166
Registered: April 1999
Senior Member
> b=create_struct('A',findgen(10000),'B',findgen(10000))
>
> I like to have as result,
>
> b[10000].a
> b[10000].b
>

how about

temp = replicate({a: 0.0, b:0.0}, 10000)

temp.a = b.a
temp.b = b.b

b = temp

Hope this will do it.
Cheers,
Pavel
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Finding PSD Mean Frequency
Next Topic: Varaibles higher on the stack

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

Current Time: Fri Oct 10 11:39:14 PDT 2025

Total time taken to generate the page: 0.55975 seconds