<< residuez | FOSSEE_Signal_Processing_Toolbox | rlevinson >>

FOSSEE_Signal_Processing_Toolbox >> FOSSEE_Signal_Processing_Toolbox > risetime

# risetime

This function estimate risetime values of real vector X.

### Syntax

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

### Parameters

x:

  real vector.

Fs:

  specifies the sample rate, Fs, as a positive scalar, where the first sample instant corresponds to a time of zero.

t:

  defiene instant sample time t as vector with same length of x, or specifies the sample rate, t, as a positive scalar.

PercentReferenceLevels:

  specify the percentreferenceleves as a percentage, default value of N is [10 90].

Tolerance:

  define the tolerance value as real scaler value, where default value of M is 2.0.

StateLevels:

  define the lower and upper state levels as two element real vector.

fig:

  specify the logical input value to display figure as one of 'on' or 'off', where the default input in 'off'.

r:

  return rise time of positive-going bilevel waveform transitions X.

lowercrossvalue:

  return the lowerc cross value.

uppercrossvalue:

  return the upper cross value.

lowerreference:

  return lower reference value corrosponding to lower percenr reference value.

upperreference:

  return lower reference value corrosponding to upper percenr reference value.

### Examples

    x=[1.2, 5, 10, -20, 12]
    t=1:length(x)
    r=risetime(x, t)

### See also

### Authors

- Jitendra Singh

Report an issue
<< residuez | FOSSEE_Signal_Processing_Toolbox | rlevinson >>