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.

0triu<br />

Purpose Upper triangular part of a matrix<br />

<strong>C++</strong> Prototype mwArray triu(const mwArray &X);<br />

mwArray triu(const mwArray &X, const mwArray &k);<br />

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

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

Syntax<br />

mwArray X, k; // Input argument(s)<br />

mwArray U; // Return value<br />

U = triu(X);<br />

U = triu(X,k);<br />

U = triu(X)<br />

U = triu(X,k)<br />

See Also <strong>MATLAB</strong> triu Calling Conventions<br />

triu<br />

396

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

Saved successfully!

Ooh no, something went wrong!