Repmat
Replicate and tile array
Syntax
repmat(x, n) |
x is matrix n is positive integer |
Return a large matrix consisting of an n-by-n tiling of copies of x. |
repmat(x, m, n) |
x is matrix m, n is positive integer |
Return a large matrix consisting of an m-by-n tiling of copies of x. |
Examples
Input |
Output |
a = [2,0;i,3] |
|
repmat(a, 3) |
|
repmat(a, 2, 3) |
Created with the Personal Edition of HelpNDoc: Easily create PDF Help documents