MINTERSECT -- Multiple set intersection.

版本 1.0.0.0 (646 字节) 作者: David Fass
A generalization of INTERSECT to handle multiple inputs.
5.5K 次下载
更新时间 2004/11/1

无许可证

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...

引用格式

David Fass (2024). MINTERSECT -- Multiple set intersection. (https://www.mathworks.com/matlabcentral/fileexchange/6144-mintersect-multiple-set-intersection), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R13
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Shifting and Sorting Matrices 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0