Skip to content

Commit

Permalink
Update repmat.R
Browse files Browse the repository at this point in the history
  • Loading branch information
ericstrobl committed Sep 1, 2018
1 parent 7a8e117 commit 7f95f84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/repmat.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

repmat = function(X,m,n){
##R equivalent of repmat (matlab)
if (!is.matrix(X)){X=matrix(X);}
X=matrix2(X);
mx = dim(X)[1]
nx = dim(X)[2]
matrix(t(matrix(X,mx,nx*n)),mx*m,nx*n,byrow=T)
Expand Down

0 comments on commit 7f95f84

Please sign in to comment.