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.

spfun<br />

0spfun<br />

Purpose Apply function to nonzero sparse matrix elements<br />

<strong>C++</strong> Prototype mwArray spfun(const mwArray &fcn,<br />

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

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

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

Syntax<br />

351<br />

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

mwArray f; // Return value<br />

f = spfun("function",S);<br />

f = spfun('function',S)<br />

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

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

Saved successfully!

Ooh no, something went wrong!