Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Build array with 2D array of values and 1D array of number of rows

Hello All,

I need to build an array made from a 2D array of 4 columns and x rows, using another array to represent the number of rows each of the four columns will last for.  For example

 

1D array     2D 4 column array       Resultant Array

1                   1  0  1  0                      1  0  1  0

2                   3  4  1  5                      3  4  1  5

3                   4  0  0  0                      3  4  1  5

                                                         4  0  0  0

                                                         4  0  0  0

                                                         4  0  0  0

Seems like a fairly simple task but i'm having a hard time figuring it out.

0 Kudos
Message 1 of 3
(3,666 Views)

Did you try two FOR loops, one inside of the other?


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 3
(3,651 Views)

Thank You!

0 Kudos
Message 3 of 3
(3,646 Views)