MATLAB: How to combine multiple arrays

array

For example, I have 3 arrays:
a = [a1; a2; a3];
b = [b1; b2; b3];
c = [c1; c2; c3];
and I want to combine them in a way: C = [a1; b1; c1; a2; b2; c2; a3; b3; c3] How can i do this, preferably without using for ? Thanks.

Best Answer

C=reshape([a b c].',[],1);
Related Question