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.

sub2ind<br />

0sub2ind<br />

Purpose Single index from subscripts<br />

<strong>C++</strong> Prototype mwArray sub2ind(const mwArray &in1,<br />

const mwVarargin &in2,<br />

const mwArray &in3,<br />

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

.<br />

.<br />

.<br />

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

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

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

Syntax<br />

381<br />

IND = sub2ind(siz,I,J);<br />

IND = sub2ind(siz,I1,I2,I3,...);<br />

IND = sub2ind(siz,I,J)<br />

IND = sub2ind(siz,I1,I2,...,In)<br />

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

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

Saved successfully!

Ooh no, something went wrong!