02-26-2009 07:36 AM
Hi,
I do have some problem in building 2D array. Currently, I do have a 2D array of 2 x 3. I would like to build another array to 2 x 6.
Example [1 2 3 and [7 8 9 to [ 1 2 3 7 8 9
4 5 6] 1 2 3] 4 5 6 1 2 3 ]
I have tried to use insert array but its does not seems to be working as i have place the index at col 3, while inserting the second 2D array. I wonder I could a achieved to a 2 x 6 array. I appreciated if someone could assist me? Thanks a lot.
Solved! Go to Solution.
02-26-2009 07:48 AM
Hi kengkc,
you can use "transpose 2D array" and "build array" to get what you want.
Mike
02-26-2009 07:57 AM - edited 02-26-2009 07:58 AM
02-26-2009 10:42 AM
Hi Mike,
I'm sorry. The solution could not work. i have tried to use a shift register to get back the previous value but was given an error of wiring of 3D to 2D. Actually, I also wanted to append several 2D array but in the form of earlier of 2 rows with the increasing of columns. I wonder if there is any solution? Thanks a lot.
02-26-2009 10:57 AM - edited 02-26-2009 11:04 AM
Heres a solution I came up with.
I'm not sure if its the best/worst way to go, but it does the trick ![]()
02-26-2009 12:01 PM
Hi keng,
why don't you use the "append array" method to build your array?
Apart from your 2d/3d array problem:
Why do you convert arrays to clusters to unbundle scalar values? Wouldn't an "Index array" operation do the same with less effort?
And why do you do math on scalar values when you could do the same math on the whole array - also with less effort?
02-27-2009 12:05 AM
Hi Cory,
Thanks. I have do some modification and it works. Thanks for your help. 😉