Measure fall time of time domain signal
Determine the fall time of a time domain signal.
load tin.mat; load xin.mat; plot (t,x)
RefLevel = [20 80]; Tf = timeDomainSignal2FallTime(t,x,RefLevel)
Tf = 4×1 10-8 × 0.2970 0.2970 0.2970 0.2970
Tin— Sample time points in signal
Sample time points in the signal of interest, specified as a vector of the same length
Vin— Signal values at sample time points
Signal values at the sample time points defined in
as a vector of the same length as
RefLevel— Reference levels as percentage of waveform amplitude
Reference levels to calculate fall time as a percentage of waveform amplitude, specified as a 2-element row vector of positive values. The reference levels must be in increasing order.
Tf— Fall time of input signal
Fall time of the input signal, returned as a vector of the same length as the number of falling edges in the signal.