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

Home » Public Forums » archive » Re: more for-loops vs. 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: more for-loops vs. arrays [message #19337] Wed, 08 March 2000 00:00 Go to previous message
reardonb is currently offline  reardonb
Messages: 16
Registered: December 1999
Junior Member
Thanks, Everyone!
Perhaps I should read the documentation more closely next time.
-Brian

In article <8a5vol$pa1$1@nnrp1.deja.com>,
reardonb@my-deja.com wrote:
> I also have a For-loop vs. array question.
> I want to fill an array with a random sequence of
> 1's and 0's. This works:
>
> array1 = intarr(5,4)
> for I=0,4-1 do begin
> for II=0,5-1 do begin
> array1[II,I] = round(randomu(s))
> endfor
> endfor
>
> but can I do it without for loops?
> Thanks.
> -Brian
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
>


Sent via Deja.com http://www.deja.com/
Before you buy.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: interpolation around a contour
Next Topic: Re: How do you get rid of for-loops with arrays

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

Current Time: Wed Oct 08 17:11:39 PDT 2025

Total time taken to generate the page: 0.00441 seconds