06-05-2014 04:16 PM
Hi all,
This may be a really simple questions, but im trying to take two 1D arrays of data, put them in to one array and have that array be 1 column so it looks neat in a table.
THank you
Solved! Go to Solution.
06-05-2014 04:58 PM
This should be pretty easy to do. Simply run the two arrays into a "Build array" function, then right click the "Build Array" function and make sure there is a Check next to "Concatenate Arrays".
N.B. To put two arrays into a "Build array function" simply place the function and then drag to bottom edge down so that you have 2 wiring points.
06-05-2014 05:00 PM
MY apolagy, I wrote this backwards haha. I want the final result to be one row, by however many columns it is.
06-05-2014 05:03 PM
A 1-D array doesn't have any direction. It can be either a single row, or a single column. It is all in whatever direction you decide to drag the control or indicator when you show multiple elements.
06-05-2014 05:05 PM
You probably need to transpose the array, since the build array function will append as rows. This will give you colums as you wanted:
06-05-2014 06:03 PM
I re-read your first question. You need to concatenate your two arrays into a 1-D array, then build this (somewhat artificially) into a 2-D array, and then transpose to get your row (the default) into a column. See this snippet:
06-05-2014 08:24 PM
None of that is correct.
A 1-D array is just that. A single dimension. It can either be horizontal (elements are columns), or vertical (elements are rows). Whichever way you want to display it.
If you actually want a 2-D array, then say so.
06-05-2014 10:45 PM
HI RavensFan: It was specified that this data would be displayed in a table, so it must be 2-D. Otherwise, you are right, you can stretch a 1-D array in a horizonal or vertical direction.
06-05-2014 10:50 PM
You're right. I missed the word "table" in the original message.