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.

feval<br />

0feval<br />

Purpose Function evaluation<br />

<strong>C++</strong> Prototype mwArray feval(mwVarargout vout,<br />

mlxFunctionPtr fcn, /* ptr to a function */<br />

const mwVarargin &in1,<br />

const mwArray &in2=mwArray::DIN,<br />

.<br />

.<br />

.<br />

const mwArray &in32=mwArray::DIN);<br />

135<br />

mwArray feval(mwVarargout vout,<br />

const mwArray &fcn, /* function name as string */<br />

const mwVarargin &in1,<br />

const mwArray &in2=mwArray::DIN,<br />

.<br />

.<br />

.<br />

const mwArray &in32=mwArray::DIN);<br />

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

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

Syntax<br />

mwArray fcn,x1; // Input argument(s)<br />

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

mwArray y1; // Return value<br />

y1 = feval(fcn);<br />

y1 = feval(fcn,x1);<br />

y1 = feval(&y2,fcn,x1,...);<br />

y1 = feval("func");<br />

y1 = feval("func",x1);<br />

y1 = feval(&y2,"func",x1,...);<br />

[y1,y2, ...] = feval(function,x1,...)<br />

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

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

Saved successfully!

Ooh no, something went wrong!