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.

0cellfun<br />

Purpose Apply a function to each element in a cell array<br />

cellfun<br />

<strong>C++</strong> Prototype mwArray cellfun(const mwArray &fname, const mwArray &C=mwArray::DIN,<br />

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

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

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

Syntax<br />

mwArray C, k; // Input argument(s)<br />

mwArray D; // Return value<br />

D = cellfun("fname",C);<br />

D = cellfun("size",C,k);<br />

D = cellfun('isclass',C,classname)<br />

D = cellfun('fname',C)<br />

D = cellfun('size',C,k)<br />

D = cellfun('isclass',C,classname)<br />

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

61

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

Saved successfully!

Ooh no, something went wrong!