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.

fprintf<br />

0fprintf<br />

Purpose Write formatted data to file<br />

<strong>C++</strong> Prototype mwArray fprintf(const mwArray &fid,<br />

const mwVarargin &format=mwVarargin::DIN,<br />

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

.<br />

.<br />

.<br />

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

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

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

Syntax<br />

169<br />

mwArray format; // String array(s)<br />

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

mwArray A1, A2; // Input argument(s)<br />

mwArray count; // Return value<br />

count = fprintf(fid,format,A1);<br />

count = fprintf(fid,format,A1,A2,...);<br />

count = fprintf(format,A1);<br />

count = fprintf(format,A1,A2,...);<br />

count = fprintf(format);<br />

count = fprintf(fid,format,A,...)<br />

fprintf(format,A,...)<br />

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

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

Saved successfully!

Ooh no, something went wrong!