What is the best way to put data into 2d array ? I have colunm numbers (data channels) and the data for them. So I want a table where each channel is on its own colunm.
Make an array with each your column data. Append these arrays. You have now a 2d array with your channel data arranged in rows. Now transpose this 2d array.