www.gusucode.com > mbc 工具箱 matlab 源码程序 > mbc/@guidarray/unique.m
function obj = unique(obj, obj1) %UNIQUE Generate a unique guidarray from two inputs % % G3 = UNIQUE(G1, G2) returns a new guidarray that contains the unique set % of guids that are in G1 and G2. % Copyright 2000-2006 The MathWorks, Inc. and Ford Global Technologies, Inc. % Check inputs are correct types if ~isa(obj, 'guidarray') && ~isa(obj1, 'guidarray') error(message('mbc:guidarray:InvalidArgument11')); end % Concatenate the two inputs obj.values = [obj.values ; obj1.values]; % Make the array unique obj.values = unique(obj.values); % Update the hash obj = updateHash(obj);