函数 [varargout] = union_several (varargin) % 函数 [varargout] = union_several (varargin) % varargout{1} 是联合向量% varargout{i>1} 是各种 varargin 的索引(按它们的顺序)
numarr = 长度(可变参数); union_arr = 可变参数{1}; 对于 i=1:numarr union_arr= union(union_arr,varargin{i}); 结尾可变参数{1} = union_arr; 对于 i=1:numarr [union_arr, temp,varargout{i+1}]= union(union_arr,varargin{i}); 结尾
2021-09-20 16:47:21
1KB
matlab
1