<< durbinlevinson | FOSSEE_Signal_Processing_Toolbox | ellip >>

FOSSEE_Signal_Processing_Toolbox >> FOSSEE_Signal_Processing_Toolbox > dutycycle

# dutycycle

This function estimate duty cycle of bilevel waveform pulses.

### 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.

tau:

  define real scalar input pulse width TAU (in seconds).

prf:

  pulse repetition frequency PRF (in Hz). The product of TAU and PRF must be less than or equal to 1.

Polarity:

  specify the polarity of the pulse as either 'positive' or 'negative', where the default value is 'positive'.

MidPercentReferenceLevel:

  specify the mid percent reference leves as a percentage, default value of N is 50.

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'.

d:

  returns the ratio of the pulse width to the pulse period for each positive-polarity pulse

initialcross:

  returns a vector of initial cross values of bilevel waveform transitions X

finalcross:

  returns a vector of final cross values of bilevel waveform transitions X

nextcross:

  returns a vector of next cross values of bilevel waveform transitions X

midreference:

  return mid reference value corrosponding to mid percenr reference value.

### Examples

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

### Authors

- Jitendra Singh

Report an issue
<< durbinlevinson | FOSSEE_Signal_Processing_Toolbox | ellip >>