%% Rise Time in Bilevel Waveform
% Determine the rise time in samples for a 2.3 V clock waveform.
% Load the 2.3 V clock data. Determine the rise time in samples. Use the default 10% and 90% percent reference levels.

load('transitionex.mat','x','t')
R = risetime(x)

%
% The rise time is less than 1, indicating that the transition occurred in a fraction of a sample. Plot the data, including the time information, and annotate the rise time.

risetime(x,t);

% Copyright 2012 The MathWorks, Inc.