This function creates a large matrix consisting of an m-by-n tiling of copies of X.
The dimensions of the returned matrix are nrow(X)*m x ncol(X)*n.
This is the equivalent of the repmat MATLAB function.
Usage
repmat(X, m, n)
Value
A replicated matrix of X with dimensions nrow(X)*m x ncol(X)*n.