Grocer Function

NAME

repmat - mimics Matlab function repmat

CALLING SEQUENCE

[B]=repmat(A,m,n)

PARAMETERS

Input

Output

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