For the first case, here's one way:

Build an index array of the size you want, and modulo the result by 4.

Build an array [0,0,1,1].

Use the result of the modulo to select a value from this array.

gray

From: [email protected] 
[mailto:[email protected]] On Behalf Of Ponthieux, Joseph 
G. (LARC-E1A)[LITES]
Sent: Thursday, September 05, 2013 7:06 PM
To: [email protected]
Subject: RE: arrays yet again

OR....

An array that looks like

0,1,4,5,8,9,12,13,16,17,20,21,etc

would also do...

Thanks
--
Joey Ponthieux
LaRC Information Technology Enhanced Services (LITES)
Mymic Technical Services
NASA Langley Research Center
__________________________________________________
Opinions stated here-in are strictly those of the author and do not
represent the opinions of NASA or any other party.

From: 
[email protected]<mailto:[email protected]>
 [mailto:[email protected]] On Behalf Of Ponthieux, 
Joseph G. (LARC-E1A)[LITES]
Sent: Thursday, September 05, 2013 6:51 PM
To: [email protected]<mailto:[email protected]>
Subject: arrays yet again

Howdy,

I want to build a 100 index array in ICE that looks like

0,0,1,1,0,0,1,1,00,1,1 etc

I'm guessing that this is doable, but I'm stumped.

--
Joey Ponthieux
LaRC Information Technology Enhanced Services (LITES)
Mymic Technical Services
NASA Langley Research Center
__________________________________________________
Opinions stated here-in are strictly those of the author and do not
represent the opinions of NASA or any other party.

<<attachment: winmail.dat>>

Reply via email to