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.

0polyval<br />

Purpose Polynomial evaluation<br />

<strong>C++</strong> Prototype mwArray polyval(const mwArray &p, const mwArray &x);<br />

mwArray polyval(const mwArray &p, const mwArray &x,<br />

const mwArray &S);<br />

polyval<br />

mwArray polyval(mwArray *delta, const mwArray &p, const mwArray &x,<br />

const mwArray &S);<br />

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

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

Syntax<br />

mwArray p, x, S; // Input argument(s)<br />

mwArray delta; // Output argument(s)<br />

mwArray y; // Return value<br />

y = polyval(p,x);<br />

y = polyval(p,x,S);<br />

y = polyval(&delta,p,x,S);<br />

y = polyval(p,x)<br />

[y,delta] = polyval(p,x,S)<br />

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

296

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

Saved successfully!

Ooh no, something went wrong!