www.gusucode.com > signal 案例源码程序 matlab代码 > signal/RiseTimeWith20Example.m

    %% Rise Time with 20% and 80% Reference Levels
% Determine the rise time in a 2.3 V clock waveform sampled at 4 MHz.
% Compute the rise time using the 20% and 80% reference levels.

%%
% Load the 2.3 V clock data with sampling instants. Determine the rise time
% using the 20% and 80% reference levels. Plot the annotated waveform.

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

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