LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

transform two 2d array into one positional 2d array

Hi, hopefully this is very easy:

i have two 2D arrays say:

1 2 3                                3 5 9
5 6 7           and               7 3 1

what i want to do is pair up the numbers in like positions and generate a 2D array as such:

1 3
2 5
3 9
5 7
6 3
7 1

so the positions within each of the parent matricies are like for each line.of the new line.
Help!
0 Kudos
Message 1 of 3
(2,221 Views)

Hi John,

you can first use the reshape array function to create two 1D array´s of your 2D array. After that use the build array function to get your new 2D Array.

Mike

Message 2 of 3
(2,219 Views)
Simple. Direct. Mike.
 
And there you have it. 🙂
____
Ryan R.
R&D
Message 3 of 3
(2,204 Views)