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.

magic<br />

0magic<br />

Purpose Magic square<br />

<strong>C++</strong> Prototype mwArray magic(const mwArray &n);<br />

mwArray magic();<br />

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

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

Syntax<br />

248<br />

mwArray n; // Input argument(s)<br />

mwArray M; // Return value<br />

M = magic(n);<br />

M = magic();<br />

M = magic(n)<br />

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

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

Saved successfully!

Ooh no, something went wrong!