MINTERSECT -- Multiple set intersection.

Version 1.0.0.0 (646 octets) par David Fass
A generalization of INTERSECT to handle multiple inputs.
5,5K téléchargements
Mise à jour 1 nov. 2004

Aucune licence

MINTERSECT(A,B,C,...) when A,B,C... are vectors returns the values common to all A,B,C... The result will be sorted. A,B,C... can be cell arrays of strings.

MINTERSECT repeatedly evaluates INTERSECT on successive pairs of sets, which may not be very efficient. For a large number of sets, this should probably be reimplemented using some kind of tree algorithm.

MINTERSECT(A,B,'rows') when A,B,C... are matrices with the same number of columns returns the rows common to all A,B,C...

Citation pour cette source

David Fass (2025). MINTERSECT -- Multiple set intersection. (https://fr.mathworks.com/matlabcentral/fileexchange/6144-mintersect-multiple-set-intersection), MATLAB Central File Exchange. Extrait(e) le .

Compatibilité avec les versions de MATLAB
Créé avec R13
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur Shifting and Sorting Matrices dans Help Center et MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Publié le Notes de version
1.0.0.0