LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Repeat 2-D array N times & concatenate

I have a 2-D array that I would like to repeat N times and concatenate along the row dimension.   For example, repeat 3 times...
 
[ a a ]   =   [ a a ]   
[ b b ]        [ b b ]
[ c c ]        [ c c ]
                 [ a a ]   
                 [ b b ]
                 [ c c ]
                 [ a a ]   
                 [ b b ]
                 [ c c ]
 
My current code almost works, but it complies the output in 3-D.   Any suggestions?
 
Thanks!
0 Kudos
Message 1 of 3
(3,695 Views)
Depends on how you did it. My guess is that you're either using the Build Array and don't have "Concatenate Inputs" checked for that function, or you're using a for-loop. There's a variety of ways to do this:



Message Edited by smercurio_fc on 06-16-2008 01:35 PM
Download All
Message 2 of 3
(3,679 Views)
Thank-you for the examples.   I am using a for loop that is very similar to your second example.   I was just missing the reshape array steps.   I was getting correctly iterated 3-D output, but because of my newbie status thought I had screwed something up in the for loop.   I've implemented and tested the second example.   Works Great!   Thank-you!
0 Kudos
Message 3 of 3
(3,663 Views)