Replicate matrix to create a larger one

Share:

Description

From: http://haky-functions.blogspot.fi/2006/11/repmat-function-matlab.html (accessed 27.3.2015)

Usage

1
repmat(X, m, n)

Arguments

X

A [I,J] matrix or J element vector, Matrix used as such, vector coerced to a row matrix with dim(X)=[1,J].

m

[1,1] integer, Replication count vertically

n

[1,1] integer, Replication count horizontally

Value

[m*I,n*J] matrix, Replicated data

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.