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.

union_func<br />

0union_func<br />

Purpose Set union of two vectors<br />

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

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

const mwArray &flag);<br />

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

const mwArray &b);<br />

mwArray union_func(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 />

397<br />

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

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

mwArray c; // Return value<br />

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

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

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

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

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

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

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

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

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

Saved successfully!

Ooh no, something went wrong!