I don’t know exactly how to phrase this question, but I have 3 column vectors, and I’m trying to turn them into a matrix such that, the matrix would basically look like
[v1 v2 v2]
where the length of each vector is obviously more than 1.
Is there an automatic way to do this?
Right now, I’m going
matrix{1} = v1;
matrix{2} = v2;
matrix{3} = v3;
but this doesn’t work work, because when I print out my matrix I get
matrix =
[50x1 double] [50x1 double] [50x1 double]
instead of the actual numbers.
Let’s say your column vectors are defined as:
Then your matrix is simply a row vector of these columns: