Replicate and tile an array
B = repmat(A, siz) B = repmat(A, m) B = repmat(A, m, n,...)
input 2D array.
integers, number of A
blocks for
each dimension of B
.
vector of integer, each element gives the number of
A
blocks for corresponding dimension of
B
.
resulting array form by tiling the A
2D array.
repmat(A,m,n)
or similarly
repmat(A,[m,n])
returns a large matrix
consisting of an m
-by-n
tiling of copies of A
. The size of the result
is [size(A,1)*M, size(A,2)*N]
.
repmat(A,m)
creates an
m
-by-m
tiling.
repmat(A,[m n p ...])
tiles the array A to produce a
multidimensional array composed of copies of A
. The size of the result is
[size(A,1)*M, size(A,2)*N, size(A,3)*P, ...]
.
For now,only arrays of real, integer, boolean, character string, polynomial and rational as well as sparse matrices are supported. This function definition can be extended using overloading mechanism.
Version | Description |
5.3.1 | Function repmat introduced. |