repmat

Matlab Functions List


  • B = repmat(A,<[r1,...,rN]>) specifies a list of scalars r1, …, rN, that describes 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