%% Overshoot Percentage, Levels, and Time Instant in Pretransition Aberration Region
% Determine the maximum percent overshoot relative to the low-state level, the level of the overshoot, and the sample instant in a 2.3 V clock waveform. Specify the 'Region' as 'Preshoot' to output pretransition metrics.
% Load the 2.3 V clock data with sampling instants. The clock data are sampled at 4 MHz.

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

%
% Determine the maximum percent overshoot, the level of the overshoot in volts, and the sampling instant where the maximum overshoot occurs. Plot the result.

[os,oslev,osinst] = overshoot(x,t,'Region','Preshoot')

overshoot(x,t,'Region','Preshoot');

% Copyright 2015 The MathWorks, Inc.