View License

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

» Watch video

Highlights from
Set functions with multiple inputs

5.0 | 1 rating Rate this file 8 Downloads (last 30 days) File Size: 35.5 KB File ID: #28341 Version: 1.3
image thumbnail

Set functions with multiple inputs


Oleg Komarov (view profile)


30 Jul 2010 (Updated )

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

| Watch this File

File Information

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.

MATLAB release MATLAB 7.9 (R2009b)
Other requirements Tested on R14SP3 (7.1) and on R2009b. In-between compatibility is assumed.
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
17 Jun 2011 LI

LI (view profile)

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

06 Aug 2010 1.3

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

Contact us