%% Overshoot Percentage in Posttransition Aberration Region
% Determine the maximum percent overshoot relative to the high-state level in a 2.3 V clock waveform.
% Load the 2.3 V clock data. Determine the maximum percent overshoot of the transition. Determine also the level and sample instant of the overshoot. In this example, the maximum overshoot in the posttransition region occurs near index 22.

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

[oo,lv,nst] = overshoot(x)

%
% Plot the waveform. Annotate the overshoot and the corresponding sample instant.

overshoot(x);

ax = gca;
ax.XTick = sort([ax.XTick nst]);

% Copyright 2015 The MathWorks, Inc.