repmat

  • B = repmat(A,<[r1,...,rN]>) takes a list of scalars r1, …, rN that describe how copies of A are arranged in each dimension
    • When A has N dimensions, the size of B is size(A).*[r1 ... rN]
    • For example, repmat([1 2; 3 4],2,3) returns a 4-by-6 matrix