B = repelem(A,r1,...,rN) returns
an array with each element of A repeated according
to r1,...,rN. Each r1,...,rN must
either be a scalar or a vector with the same length as A in
the corresponding dimension. For example, if A is
a matrix, repelem(A,2,3) returns a matrix containing
a 2-by-3 block of each element
of A.

n — Number of times to repeat each elementscalar | vector

Number of times to repeat each element, specified as a scalar
or a vector. If n is a scalar, then all elements
of v are repeated n times. If n is
a vector, then each element of n specifies the
number of times to repeat the corresponding element of v.
In either case, n must be integer-valued.