LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

nested loops

If you use nested loops to create a 2d array.  Which loop creates the rows and which loop creates columns?

 

 

0 Kudos
Message 1 of 2
(2,508 Views)

Do the experiment (write a double-nested loop, take the inner-most index and bring it out).  You'll see that the Outer loop gives you rows, the Inner loop gives you columns.

 

Bob Schor

0 Kudos
Message 2 of 2
(2,504 Views)