MATLAB: How to generate a matrix with the same vector in all the lines

matrix vector n times

Hello,
I'd like to generate a matrix with the same vector n times. What I can choose. For example:
A= [ 1 2 3; 1 2 3; 1 2 3; …..n times……; 1 2 3]
Thank You

Best Answer

A = repmat(1:3,n,1)
And to learn more:
doc repmat