function y = repeat(x, n)
%REPEAT Repeat a value n times
%   y = repeat(x, n) returns a 1xn vector y containing n copies
%   of the value x.

% solution 1
y = zeros(1, n);
for i = 1:n
    y(i) = x;
end


% solution 2
y = ones(1, n) * x;


% solution 3
y = repmat(x, [1 n]);

