23.07.2012 Views

MATLAB C++ Math Library Reference

MATLAB C++ Math Library Reference

MATLAB C++ Math Library Reference

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

0cart2pol<br />

Purpose Transform Cartesian coordinates to polar or cylindrical<br />

cart2pol<br />

<strong>C++</strong> Prototype mwArray cart2pol(mwArray *RHO, mwArray *Z_out, const mwArray &X,<br />

const mwArray &Y, const mwArray &Z_in);<br />

mwArray cart2pol(mwArray *RHO, const mwArray &X, const mwArray &Y);<br />

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

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

Syntax<br />

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

mwArray RHO, Z_out; // Output argument(s)<br />

mwArray THETA; // Return value<br />

THETA = cart2pol(&RHO,&Z_out,X,Y,Z_in);<br />

THETA = cart2pol(&RHO,X,Y);<br />

[THETA,RHO,Z] = cart2pol(X,Y,Z)<br />

[THETA,RHO] = cart2pol(X,Y)<br />

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

53

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

Saved successfully!

Ooh no, something went wrong!