repmat
Repeat matrix
repmat(A, m)
A
should be an array. It duplicates and tilesA
m
times in every dimension ofA
. Ifm
is zero, it returns an empty array.
repmat(A, s1, s2, ..., sn)
A
hasn
dimensions, ands1
,s2
, ...,sn
are non-negative numbers. It duplicates and tilesA
in the 1st, 2nd, ..., n-th dimensionss1
,s2
, ...,sn
times, respectively. If any ofs1
,s2
, ...,sn
is zero, it returns an empty array.
repmat(A, s)
A
hasn
dimensions, ands
is an array with non-negative elementss1
,s2
, ...,sn
. It duplicates and tilesA
in the 1st, 2nd, ..., n-th dimensionss1
,s2
, ...,sn
times, respectively. If any ofs1
,s2
, ...,sn
is zero, it returns an empty array.