MATLAB: How to combine two arrays

cell arraysMATLAB

I have two arrays
x = 561x1 double
y = 561x1 double
How can i combine it into
z = 561x2 double

Best Answer

x = rand(561,1) ;
y = rand(561,1) ;
z = [x y]