12-10-2009 03:20 PM
Hi,
Kind of a noob here. So here is what I want:
All 2d arrays -
Array 1: Array2: Appended Array:
0,1,2 6,7,8 0,1,2,6,7,8
3,4,5 9,10,11 3,4,5,9,10,11
So I know I can do this by indexing both input arrays and then appending them and then build another 2d array. My question is, is there a way to do this that is nice and neat and not so convoluted?
Thanks for any help.
12-11-2009 09:20 AM - edited 12-11-2009 09:27 AM
Please do not ask the same question twice. Have a little patience.
EDIT: It appears this may have been an automatically created thread due to it being moved from the LabVIEW Idea Exchange where it was originally posted. In that case, please disregard my comment regarding the chiding on the patience. It's still wise to have a little patience in general, though.
12-11-2009 09:56 AM
Cant you just use Build array but r-click it for concatenate inputs?
Else you can use Insert into array and add after the last column i s'pose.
Or you can transpose both matrices and build array and transpose back ...
/Y
12-11-2009 12:05 PM
Yamaeda wrote:Cant you just use Build array but r-click it for concatenate inputs?
Else you can use Insert into array and add after the last column i s'pose.
Or you can transpose both matrices and build array and transpose back ...
/Y
If you check out the other thread you'll see the solutions posted.
08-21-2014 02:31 AM
I also have a question. Concatenating 1D arrays works fine
1,2,3,4 concatenated with 5,6,7,8,9 gives 1,2,3,4,5,6,7,8,9
but with 2D arrays
1,2,3,4
5,6,7,8
concatenated with
10,11,12
20,21,22
gives
1,2,3,4
5,6,7,8
10,11,12,0
20,21,22,0
Why not
1,2,3,4,10,11,12
5,6,7,8,20,21,22 ?
08-21-2014 04:01 AM
Attach your code.
There are several ways to concatenate, maybe you want to transpose first, for example, or wrap a FOR loop around it.
08-21-2014 06:43 AM
Transpose before and after concatenating.
/Y
08-21-2014 06:43 AM - edited 08-21-2014 06:44 AM
Fun with transposing arrays. Can't count how many times I've had to do this for table displays...
08-21-2014 10:23 AM - edited 08-21-2014 10:25 AM
altenbach wrote:There are several ways to concatenate, maybe you want to transpose first, for example, or wrap a FOR loop around it.
Here's the second method I suggested, same difference: 😄
This seems cleaner, but I am not sure what's more efficient....
08-21-2014 10:35 AM