Union of several arrays in matlab

The following Matlab project contains the source code and Matlab examples used for union of several arrays. function [varargout] = union_several (varargin) % function [varargout] = union_several (varargin) % varargout{1} is the union vector % varargout{i>1} are the indices of the various varargin (in their order) numarr = length(varargin); union_arr = varargin{1}; for i=1:numarr         union_arr= union(union_arr,varargin{i}); end varargout{1} = union_arr; for i=1:numarr         [union_arr, temp,varargout{i+1}]= union(union_arr,varargin{i}); end         

The source code and files included in this project are listed in the project files section, please make sure whether the listed source code meet your needs there.

Project Files: 

File NameSize
license.txt 1305
union_several.m 467