Duty cycle of pulse waveform
D = dutycycle(X)
D = dutycycle(X,FS)
D = dutycycle(X,T)
D = dutycycle(TAU,PRF)
[D,INITCROSS]
= dutycycle(X,...)
[D,INITCROSS,FINALCROSS]
= dutycycle(X,...)
[D,INITCROSS,FINALCROSS,NEXTCROSS]
= dutycycle(X,...)
[D,INITCROSS,FINALCROSS,NEXTCROSS,MIDLEV]
= dutycycle(X,...)
[D,INITCROSS,FINALCROSS,NEXTCROSS]
= dutycycle(X,...,Name,Value)
dutycycle(X,...)
returns
the ratio of pulse width to pulse period for each positivepolarity
pulse. D
= dutycycle(X
)D
has length equal to the number of pulse
periods in X
. The sample instants of X
correspond
to the indices of X
. To determine the transitions
that define each pulse, dutycycle
estimates the
state levels of the input waveform by a histogram method. dutycycle
identifies
all regions, which cross the upperstate boundary of the low state
and the lowerstate boundary of the high state. The lowstate and
highstate boundaries are expressed as the state level plus or minus
a multiple of the difference between the state levels. See StateLevel Tolerances.
specifies
the sampling frequency, D
= dutycycle(X
,FS
)FS
, in hertz as a positive
scalar. The first sample instant of X
corresponds
to t=0.
specifies the sample instants, D
= dutycycle(X
,T
)T
, as a vector
with the same number of elements as X
.
returns
the ratio of pulse width to pulse period for a pulse width of D
= dutycycle(TAU
,PRF
)TAU
seconds
and a pulse repetition frequency of PRF
. The
product of TAU
and PRF
must
be less than or equal to 1.
[
returns a vector, D
,INITCROSS
]
= dutycycle(X
,...)INITCROSS
,
whose elements correspond to the midcrossings (midreference level
instants) of the initial transition of each pulse with a corresponding NEXTCROSS
.
[
returns a vector, D
,INITCROSS
,FINALCROSS
]
= dutycycle(X
,...)FINALCROSS
,
whose elements correspond to the midcrossings (midreference level
instants) of the final transition of each pulse with a corresponding NEXTCROSS
.
[
returns a vector, D
,INITCROSS
,FINALCROSS
,NEXTCROSS
]
= dutycycle(X
,...)NEXTCROSS
,
whose elements correspond to the midcrossings (midreference level
instants) of the next detected transition for each pulse.
[
returns the midreference
level, D
,INITCROSS
,FINALCROSS
,NEXTCROSS
,MIDLEV
]
= dutycycle(X
,...)MIDLEV
. Because in a bilevel pulse waveform
the state levels are constant, MIDLEV
is a scalar.
[
returns
the ratio of pulse width to pulse period with additional options specified
by one or more D
,INITCROSS
,FINALCROSS
,NEXTCROSS
]
= dutycycle(X
,...,Name,Value
)Name,Value
pair arguments.
dutycycle(
plots the waveform, X
,...)X
, and marks the location
of the midreference level instants and the associated reference levels.
The state levels and associated lower and upper state boundaries are
also plotted.

Bilevel waveform. 

Sample rate in hertz. 

Vector of sample instants. The length of 

Pulse width in seconds. The product of 

Pulse repetition frequency in pulses/second. The product of 

Midreference level as a percentage of the waveform amplitude. Default: 

Pulse polarity. Specify the polarity as Default: 

Low and highstate levels. 

Tolerance levels (lower and upperstate boundaries) expressed as a percentage. See StateLevel Tolerances. Default: 

Duty cycle. Duty cycle is the ratio of the pulse width to the
pulse period. Because the pulse width cannot exceed the pulse period, 0≤ 

Midreference level instant of initial transition. Because the
duty cycle is defined as the ratio of pulse width to pulse period,
initial transitions are only reported when 

Midreference level instant of final transition. The duty cycle
is defined as the ratio of pulse width to pulse period. Thus, final
transitions are only reported when 

Midreference level instant of the first initial transition after the final transition of the preceding pulse. 

Midreference level. The waveform value that corresponds to the midreference level. 
[1] Skolnik, M.I. Introduction to Radar Systems. New York, NY: McGrawHill, 1980.
[2] IEEE^{®} Standard on Transitions, Pulses, and Related Waveforms. IEEE Standard 181, 2003.