ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Possible index combinations in 2D array - more Math Question than LabView???

Hi All,
I am struggling with this problem:
I have a 2D array
50   62 73 82 91 96 100
43 78 146 186 230 255
0.25 2 6 12 20
5 50 500 2000 8000
5 50 500 2000 8000
0 Kudos
Message 1 of 4
(2,832 Views)
what are you trying to do? are you trying to get every possible combination of indexes? please be more specific about what it is that you want.
0 Kudos
Message 2 of 4
(2,824 Views)
As a general rule of thumb, given a 2-D array with a set number X and Y the unique number of index combinations will be simply X * Y.  So, for example, a 5 x 5 array will have 25 unique combinations.  [1][1], [1][2], [1][3], ... , [4][5], [5][5].
0 Kudos
Message 3 of 4
(2,823 Views)

Hi Vivi and Chaos,

I accidentaly submitted this post. My updated post was asnwered later.

Sorry about the confusion.

Thanks,

Mim

0 Kudos
Message 4 of 4
(2,812 Views)