Measure rise time of time domain signal
Determine the rise time of a time-domain signal.
load tin.mat; load xin.mat; plot(t,x)
RefLevel = [20 80]; Tr = timeDomainSignal2RiseTime(t,x,RefLevel)
Tr = 5×1 10-8 × 0.2970 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 rise 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.
Tr— Rise time of input signal
Rise time of the input signal, returned as a vector of the same length as the number of rising edges in the signal.