I want to understand how to be able to collect elements of n by m dimensional array and store them to n vectors of m dimensions. For example I have the following 3 x 2 array and I want to store the pair of each row into a vector.
Array1 = [ 1 0; 2 0; 3 0]
That gives:
3×2 Array{Int64,2}:
1 0
2 0
3 0
The idea is to make a for loop that in each iteration stores to a 2 dimensional vector the values of the array above.
I am not sure how to do it since the collect function will only save elements of the same column from my experiments until now.
How can I store each pair into a vector then?