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.

setxor<br />

0setxor<br />

Purpose Set exclusive-or of two vectors<br />

<strong>C++</strong> Prototype mwArray setxor(const mwArray &a, const mwArray &b);<br />

mwArray setxor(const mwArray &A, const mwArray &B,<br />

const mwArray &flag);<br />

mwArray setxor(mwArray *ia, mwArray *ib, const mwArray &a,<br />

const mwArray &b);<br />

mwArray setxor(mwArray *ia, mwArray *ib, const mwArray &A,<br />

const mwArray &B, const mwArray &flag);<br />

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

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

Syntax<br />

339<br />

mwArray a, b, A, B; // Input argument(s)<br />

mwArray ia, ib; // Output argument(s)<br />

mwArray c; // Return value<br />

c = setxor(a,b);<br />

c = setxor(A,B,"rows");<br />

c = setxor(&ia,&ib,a,b);<br />

c = setxor(&ia,&ib,A,B,"rows");<br />

c = setxor(a,b)<br />

c = setxor(A,B,'rows')<br />

[c,ia,ib] = setxor(...)<br />

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

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

Saved successfully!

Ooh no, something went wrong!