%% Fall Time with 20% and 80% Reference Levels
% Determine the fall time in a 2.3 V clock waveform sampled at 4 MHz. Compute the fall time using the 20% and 80% reference levels.
% Load the 2.3 V clock data with sampling instants. Determine the fall time using 20% and 80% reference levels. Plot the waveform and annotate the fall time.

load('negtransitionex.mat','x','t')

falltime(x,'PercentReferenceLevels',[20 80])

% Copyright 2015 The MathWorks, Inc.