function boo = hasMatchingTimeUnits(TU,varargin)
% Checks all inputs have the same time units TU.

%   Copyright 1986-2010 The MathWorks, Inc.
boo = true;
for ct=1:numel(varargin)
   if ~strcmp(TU,varargin{ct}.TimeUnit)
      boo = false; return
   end
end
