function y = repeat(x,n) y = []; for i = 1:n y = [y,x]; end