repmat: Replicate and tile a matrix

View source: R/repmat.R

repmatR Documentation

Replicate and tile a matrix

Description

This function creates a large matrix consisting of an m-by-n tiling of copies of X. The dimensions of the returned matrix are nrow(X)*m x ncol(X)*n. This is the equivalent of the repmat MATLAB function.

Usage

repmat(X, m, n)

Arguments

X

matrix to be replicated

m

row dimension of replication

n

column dimension of replication

Value

A replicated matrix of X with dimensions nrow(X)*m x ncol(X)*n.

Author(s)

Olivier Gimenez <olivier.gimenez@cefe.cnrs.fr>


R2ucare documentation built on July 11, 2022, 9:06 a.m.