R/repmat.R

Defines functions repmat

repmat <-
function(X,m,n){
  ##R equivalent of repmat (matlab)
  mx = dim(X)[1]
  nx = dim(X)[2]
  matrix(t(matrix(X,mx,nx*n)),mx*m,nx*n,byrow=T)
}
JuliaWinchester/auto3dgm-fork documentation built on May 7, 2019, 12:05 p.m.