Problem using repmat function

I'm trying to replicate my original data by replacing my datafile with the following code:
y=[y1
y2
.
.
.];
y=repmat(y,10,1);
it should work. Can't understand why I am getting error messages.
y=[y1
y2
.
.
.];
y=repmat(y,10,1);
it should work. Can't understand why I am getting error messages.