function addReservedNames(h,field,names)

% Copyright 2014 The MathWorks, Inc.

if isfield( h.ReservedNames, field )
h.ReservedNames.(field) = unique( horzcat( h.ReservedNames.(field), names ) );
else
h.ReservedNames.(field) = unique( names );
end
end