Returns matrix with value a replicated to the number of times
in each dimension specified.
Defaults to square if dimension argument resolves to a single value.

Details

repmat(a,m,n) creates a large matrix consisting of an m-by-n tiling
of copies of a.