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

Home » Public Forums » archive » Re: initializing arrays
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: initializing arrays [message #49012] Fri, 09 June 2006 11:03 Go to previous message
btt is currently offline  btt
Messages: 345
Registered: December 2000
Senior Member
johnadams_1980@yahoo.com wrote:
> Hi All,
>
> How do you initialize an array to a specific value without using a for
> loop?
>
> Thanks,
> KL
>
You have choices...

arr = REPLICATE(7.0, [32,5])

arr = MAKE_ARRAY([32,5], VALUE = 7.0)

arr = FLTARR(32,5) + 7.0

Ben
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Using Windows IDL to access a UNIX database using DLM's
Next Topic: is there a command in IDL like bitget command in matlab?

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

Current Time: Wed Oct 08 13:42:01 PDT 2025

Total time taken to generate the page: 0.00376 seconds