23.07.2012 Views

MATLAB C++ Math Library Reference

MATLAB C++ Math Library Reference

MATLAB C++ Math Library Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

epmat<br />

0repmat<br />

Purpose Replicate and tile an array<br />

<strong>C++</strong> Prototype mwArray repmat(const mwArray &A, const mwArray &m,<br />

const mwArray &n);<br />

mwArray repmat(const mwArray &A, const mwArray &dims);<br />

<strong>C++</strong> Syntax #include "matlab.hpp"<br />

<strong>MATLAB</strong><br />

Syntax<br />

322<br />

mwArray A, m, n, p; // Input argument(s)<br />

mwArray B; // Return value<br />

B = repmat(A,m,n);<br />

B = repmat(A,horzcat(m,n));<br />

B = repmat(A,horzcat(m,n,p,...));<br />

B = repmat(A,m,n)<br />

B = repmat(A,[m n])<br />

B = repmat(A,[m n p...])<br />

See Also <strong>MATLAB</strong> repmat Calling Conventions

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!