Robust Control Toolbox™ Previous page   Next Page 
repmat
 Provide feedback about this page

Replicate and tile array

Syntax

Description

B = repmat(A,M,N) creates a large matrix B consisting of an M-by-N tiling of copies of A.

B = repmat(A,[M N]) accomplishes the same result as repmat(A,M,N).

B = repmat(A,[M N P ...]) tiles the array A to produce an M-by-N-by-P-by-... block array. A can be N-D.

repmat(A,M,N) for scalar A is commonly used to produce an M-by-N matrix filled with values of A.

Example

Simple examples of using repmat are


 Provide feedback about this page 

Previous page reduce robopt Next page

 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS