File Exchange

image thumbnail

Set functions with multiple inputs

version 1.3 (35.5 KB) by

Intersectm, ismemberm, setdiffm, setxorm, unionm with multiple inputs. Ex: intersectm(a,b,c,…).

8 Downloads

Updated

View License

Have you ever tried to find the common elements/rows to more than two sets without using a loop?

Now you can with multiple-input set functions: Intersectm, ismemberm, setdiffm, setxorm, unionm.

Brief syntax example:
 - intersectm(a,b,c,d,....)
 - intersectm(a,b,c,d,...,'rows')

These functions are substantially wrappers of ismember/ismemberm (like the original two-input ones with the exception of ismember).

For details see help.
For examples see the attached documentation.

Comments/suggestions/error reports are welcome.
p11v2

Comments and Ratings (1)

LI

LI (view profile)

really nice work. It's amazing. Hopefully it can be faster in the future.

Updates

1.3

Added link to fex page; added picture; edited description of setdiffm

MATLAB Release
MATLAB 7.9 (R2009b)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

SetMI/html/