You can try using vertcat , for example:
x = [1 2 2 3]; m = vertcat(x,x,x,x);
Or even just:
x = [1 2 2 3]; m = [x;x;x;x];
EDIT:
for multiples of x, you can do:
x = [1 2 2 3]; m = [x;2*x;3*x]; % [1 2 2 3; 2 4 4 6; 3 6 6 9]
EDIT2:
For an arbitrary number x in m ...
n = 3; % number of repetitions... x = [1 2 2 3]; m = []; for i=1:n m = [m;x]; end
Richard Inglis
source share