How do I transform a row vector like the one above (1x3)
1x3
a = [1 2 3];
In to a column vector?
Found it! It's vec(). The reason why I couldn't find it is because I kept on looking for "row vector". Instead it's a 2D array.
vec()
Simply use vec(a) and it will be a standard column vector.
vec(a)
2.1m questions
2.1m answers
63 comments
56.7k users