Code covered by the BSD License  

Highlights from
Set functions with multiple inputs

5.0

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

Set functions with multiple inputs

by

 

30 Jul 2010 (Updated )

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

| Watch this File

File Information
Description

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

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

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

Updates
06 Aug 2010

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

Contact us