mimics Matlab function repmat
[B]=repmat(A,m,n)
A = a matrix
m = a scalar or a (1xk) vector
n = a scalar (used only if m is a scalar)
B = the replication and tiling of A
A = [1 2 3 ; 4 5 6];B=repmat(A,2,3) // returns // B = //! 1. 2. 3. 1. 2. 3. 1. 2. 3. ! //! 4. 5. 6. 4. 5. 6. 4. 5. 6. ! //! 1. 2. 3. 1. 2. 3. 1. 2. 3. ! //! 4. 5. 6. 4. 5. 6. 4. 5. 6. !