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

Home » Public Forums » archive » assign an array to an element in another array
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: assign an array to an element in another array [message #90656 is a reply to message #90645] Fri, 20 March 2015 09:42 Go to previous messageGo to previous message
Matthew Argall is currently offline  Matthew Argall
Messages: 286
Registered: October 2011
Senior Member
> There is almost always a better way to do what you want, rather than piecing together variable names.

Seconded. You can just create 6xN array, then access any row you want without all the trouble of naming them

;Create an array
array = randomu(seed, 6, 100)

;Pick a row
iRow = 4
theRow = array[*, iRow]


"iRow" is essentially the name of your row...
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL Array Indices Command
Next Topic: IMSL won't load

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

Current Time: Wed Oct 08 15:13:32 PDT 2025

Total time taken to generate the page: 0.00433 seconds