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.

strncmpi<br />

0strncmpi<br />

Purpose Compare first n characters of strings ignoring case<br />

<strong>C++</strong> Prototype mwArray strncmpi(const mwArray &str1,<br />

const mwArray &str2,<br />

const mwArray &n);<br />

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

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

Syntax<br />

375<br />

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

mwArray k, TF; // Return value<br />

k = strncmpi("str1","str2",n);<br />

TF = strncmpi(S,T,n);<br />

k = strncmpi('str1','str2',n)<br />

TF = strncmpi(S,T,n)<br />

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

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

Saved successfully!

Ooh no, something went wrong!