cancel
Showing results for 
Search instead for 
Did you mean: 

transform two 2d array into one positional 2d array

John Pierson
Active Participant

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!
2 REPLIES 2
MikeS81
Proven Zealot

Re: transform two 2d array into one positional 2d array

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

Highlighted
RnDMonkey
Active Participant

Re: transform two 2d array into one positional 2d array

Simple. Direct. Mike.
 
And there you have it. Smiley Happy
____
Ryan R.
R&D