LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to efficiently concatenate 2D arrays

I like @Kevin_Price's solution as it is simple and straightforward.

 

Depending on the size of the arrays, I still think pre-allocation will be the best. Otherwise in a tight loop you will constantly resize the array/memory space which will be slower in all cases. For a small amount of data/iterations I would go with Kevin's solution where memory is not an issue.

0 Kudos
Message 11 of 11
(252 Views)