repmat(A,[2 3]) => A can be any mxn matrix, single data or 1-d array.
replicate A to 2x3 Matrix as
A A A
A A A
http://www.cs.utsa.edu/~cs1173/resources/CS1173RepmatFunction.pdf
explanation of REPMAT for repeating array patterns