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

Home » Public Forums » archive » How to create a varying variable?
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: How to create a varying variable? [message #89390 is a reply to message #89389] Mon, 06 October 2014 07:33 Go to previous messageGo to previous message
Matthew Argall is currently offline  Matthew Argall
Messages: 286
Registered: October 2011
Senior Member
> ;List
> myList = list()
> myList(1) -> Add, fltarr(nc, nr)
> myList(2) -> Add, fltarr(nc, nr)

Typo. Should be

;List
myList = list()
myList -> Add, fltarr(nc, nr)
myList -> Add, fltarr(nc, nr)


I suppose you could also create a hash

;Hash
myHash = hash()
myHash('Key1') = fltarr(nc, nr)
myHash('Key2') = fltarr(nc, nr)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Problem with mpfit (possibly a string length issue)
Next Topic: How can i write Δ in Y axis

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

Current Time: Wed Oct 08 18:14:53 PDT 2025

Total time taken to generate the page: 0.00252 seconds