Grocer Function
NAME
repmat - mimics Matlab function repmat
CALLING SEQUENCE
[B]=repmat(A,m,n)
PARAMETERS
Input
-
A = a matrix
-
m = a scalar or a (1xk) vector
-
n = a scalar (used only if m is a scalar)
Output
-
B = the replication and tiling of A
DESCRIPTION
Function that mimics Matlab function repmat, that replicates and tiles an array
EXAMPLE
A = [1 2 3 ; 4 5 6];B=repmat(A,2,3)
Example gives the matrix:
B =
! 1. 2. 3. 1. 2. 3. 1. 2. 3. !
! 4. 5. 6. 4. 5. 6. 4. 5. 6. !
! 1. 2. 3. 1. 2. 3. 1. 2. 3. !
! 4. 5. 6. 4. 5. 6. 4. 5. 6. !
AUTHOR
Eric Dubois 2004