Period of bilevel pulse
P = pulseperiod(X)
P = pulseperiod(X,FS)
P = pulseperiod(X,T)
[P,INITCROSS]
= pulseperiod(...)
[P,INITCROSS,FINALCROSS]
= pulseperiod(...)
[P,INITCROSS,FINALCROSS,NEXTCROSS]
= pulseperiod(...)
[P,INITCROSS,FINALCROSS,NEXTCROSS,MIDLEV]
= pulseperiod(...)
[P,INITCROSS,FINALCROSS,NEXTCROSS,MIDLEV]
= pulseperiod(...,Name,Value)
pulseperiod(...)
returns a vector, P
= pulseperiod(X
)P
, containing the difference
between the mid-reference level instants of the initial transition
of each positive-polarity pulse and the next positive-going transition
in the bilevel waveform, X
. If pulseperiod
does
not find two positive-polarity transitions, P
is
empty. To determine the transitions for each pulse, pulseperiod
estimates
the state levels of the input waveform by a histogram method and identifies
all regions which cross the upper-state boundary of the low state
and the lower-state boundary of the high state. The low-state and
high-state boundaries are expressed as the state level plus or minus
a multiple of the difference between the state levels. See State-Level Tolerances. Because pulseperiod
uses
interpolation to determine the mid-reference level instants, P
may
contain values that do not correspond to sampling instants of the
bilevel waveform, X
.
specifies the sample rate in hertz as a positive scalar. The first sample instant in
P
= pulseperiod(X
,FS
)X
corresponds to t=0. Because pulseperiod
uses interpolation to determine the
mid-reference level instants, P
may contain values that do not correspond to
sampling instants of the bilevel waveform, X
.
specifies
the sampling instants in a vector equal in length to P
= pulseperiod(X
,T
)X
.
Because pulseperiod
uses interpolation to determine
the mid-reference level instants, P
may contain
values that do not correspond to sampling instants of the bilevel
waveform, X
.
[
returns the mid-reference level instants
of the first transition of each pulse.P
,INITCROSS
]
= pulseperiod(...)
[
returns the mid-reference level instants
of the final transition of each pulse.P
,INITCROSS
,FINALCROSS
]
= pulseperiod(...)
[
returns the mid-reference level instants
of next detected transition after each pulse.P
,INITCROSS
,FINALCROSS
,NEXTCROSS
]
= pulseperiod(...)
[
returns the mid-reference level,P
,INITCROSS
,FINALCROSS
,NEXTCROSS
,MIDLEV
]
= pulseperiod(...)MIDLEV
.
[
returns
the pulse periods with additional options specified by one or more P
,INITCROSS
,FINALCROSS
,NEXTCROSS
,MIDLEV
]
= pulseperiod(...,Name,Value
)Name,Value
pair
arguments.
pulseperiod(...)
plots the signal and darkens
every other identified pulse. It marks the location of the mid crossings,
and their associated reference level. The state levels and their associated
lower and upper boundaries (adjustable by the Name,Value
pair
with name 'Tolerance'
) are also plotted.
|
Bilevel waveform. If the waveform, |
|
Sample rate in hertz. |
|
Vector of sample instants. The length of |
|
Mid-reference level as a percentage of the waveform amplitude. Default: 50 |
|
Pulse polarity. Specify the polarity as Default: |
|
Low- and high-state levels. |
|
Tolerance levels (lower and upper state boundaries) expressed as a percentage. See State-Level Tolerances. Default: 2 |
|
Pulse period in seconds. The pulse period is defined as the time between the mid-reference level instants of two consecutive transitions. |
|
Mid-reference level instant of initial transition. |
|
Mid-reference level instant of final transition. |
|
Mid-reference level instant of the first pulse transition after the final transition of the preceding pulse. |
|
Waveform value that corresponds to the mid-reference level. |
[1] IEEE® Standard on Transitions, Pulses, and Related Waveforms, IEEE Standard 181, 2003.