<< eqtflength | FOSSEE_Signal_Processing_Toolbox | fft1 >>

FOSSEE_Signal_Processing_Toolbox >> FOSSEE_Signal_Processing_Toolbox > falltime

# falltime

Estimate the fall time of a negative-going bilevel waveform.

### Syntax

    f = falltime(x)
    f = falltime(x, t)
    f = falltime(x, Fs)
    f = falltime(x, t, 'PercentReferenceLevels', N)
    f = falltime(x, t, 'Tolerance', M)
    f = falltime(x, t, 'StateLevels', O)
    [f, lowercrossvalue, uppercrossvalue, lowerreference, upperreference] = falltime(x)
    [f, lowercrossvalue, uppercrossvalue, lowerreference, upperreference] = falltime(x, Fs)
    [f, lowercrossvalue, uppercrossvalue, lowerreference, upperreference] = falltime(x, t)
    [f, lowercrossvalue, uppercrossvalue, lowerreference, upperreference] = falltime(x, t, 'PercentReferenceLevels', N)
    [f, lowercrossvalue, uppercrossvalue, lowerreference, upperreference] = falltime(x, t, 'Tolerance', M)
    [f, lowercrossvalue, uppercrossvalue, lowerreference, upperreference] = falltime(x, t, 'StateLevels', O)
    [f, lowercrossvalue, uppercrossvalue, lowerreference, upperreference] = falltime(x, t, 'StateLevels', O, 'fig', 'on' or 'off')

### Parameters

x:

  Real vector. The input signal.

Fs:

  Positive scalar. Specifies the sample rate, where the first sample instant corresponds to a time of zero.

t:

  Vector or positive scalar. Defines the sample time instants or the sample rate.

PercentReferenceLevels:

  Two-element vector. Specifies the percent reference levels as percentages. Default is [10, 90].

Tolerance:

  Real scalar. Specifies the tolerance value. Default is 2.0.

StateLevels:

  Two-element real vector. Defines the lower and upper state levels.

fig:

  String. Specifies whether to display the figure ('on' or 'off'). Default is 'off'.

f:

  Vector. Returns the fall time of negative-going bilevel waveform transitions.

lowercrossvalue:

  Vector. Returns the lower cross values.

uppercrossvalue:

  Vector. Returns the upper cross values.

lowerreference:

  Scalar. Returns the lower reference value corresponding to the lower percent reference level.

upperreference:

  Scalar. Returns the upper reference value corresponding to the upper percent reference level.

### Description

This function estimates the fall time of a negative-going bilevel waveform. It calculates the time difference between the upper and lower percent reference levels of the waveform.

### Examples

    Fs = 1e6 // 1 MHz sampling rate
    x = [3.3, 3.3, 3.2, 2.5, 1.0, 0.2, 0.0, 0.0] // Simulated digital fall
    f = falltime(x, Fs)

### Authors

- Jitendra Singh

Report an issue
<< eqtflength | FOSSEE_Signal_Processing_Toolbox | fft1 >>