You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
function [varargout] = intersect_several (varargin)
% function [varargout] = intersect_several (varargin)
% varargout{1} is the intersect vector
% varargout{i>1} are the indices of the various varargin (in their order)
numarr = length(varargin);
intersect_arr = varargin{1};
for i=1:numarr
intersect_arr= intersect(intersect_arr,varargin{i});
end
varargout{1} = intersect_arr;
for i=1:numarr
[intersect_arr, temp,varargout{i+1}]= intersect(intersect_arr,varargin{i});
end
Cite As
Julia (2026). Intersect several arrays (https://uk.mathworks.com/matlabcentral/fileexchange/24835-intersect-several-arrays), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.0.0 (1.15 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 |
