function update(cd,r)
%UPDATE  Data update method for @eventCharData class.

%  Author(s):  
%  Copyright 1986-2004 The MathWorks, Inc.
%  $Revision: 1.1.6.1 $  $Date: 2004/12/26 21:37:32 $

cd.Time = cd.Event.Time*tsunitconv(r.Parent.TimeUnits,cd.Event.Parent.TimeInfo.Units);
if size(cd.Parent.Amplitude,2)>=2
    ind  = ~any(isnan(cd.Parent.Amplitude)')';
else
    ind = ~isnan(cd.Parent.Amplitude);
end
cd.Amplitude = interp1(cd.Parent.Time(ind),cd.Parent.Amplitude(ind,:),cd.Time);
