Separation between bilevel waveform pulses
S = pulsesep(X)
S = pulsesep(X,FS)
S = pulsesep(X,T)
[S,INITCROSS]
= pulsesep(...)
[S,INITCROSS,FINALCROSS]
= pulsesep(...)
[S,INITCROSS,FINALCROSS,NEXTCROSS]
= pulsesep(...)
[S,INITCROSS,FINALCROSS,NEXTCROSS,MIDLEV]
= pulsesep(...)
[S,INITCROSS,FINALCROSS,NEXTCROSS,MIDLEV]
= pulsesep(...,Name,Value)
pulsesep(...)
returns
the differences, S
= pulsesep(X
)S
, between the mid-reference
level instants of the final negative-going transitions of every positive-polarity
pulse and the next positive-going transition. X
is
a bilevel waveform. To determine the transitions that compose each
pulse, pulsesep
estimates the state levels of X
by
a histogram method. pulsesep
identifies all regions
that 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 pulsesep
uses
interpolation to determine the mid-reference level instants, S
may
contain values that do not correspond to sampling instants of the
bilevel waveform, X
.
specifies the sample rate, S
= pulsesep(X
,FS
)FS
, in Hz as a positive scalar. The first time
instant corresponds to t=0. Because pulsesep
uses interpolation to determine the
mid-reference level instants, S
may contain values that do not correspond to
sampling instants of the bilevel waveform, X
.
specifies
the sampling instants, S
= pulsesep(X
,T
)T
, in a vector equal in
length to X
. Because pulsesep
uses
interpolation to determine the mid-reference level instants, S
may
contain values that do not correspond to sampling instants of the
bilevel waveform, X
.
[
returns the mid-reference level instants, S
,INITCROSS
]
= pulsesep(...)INITCROSS
,
of the first positive-polarity transitions.
[
returns the mid-reference level instants, S
,INITCROSS
,FINALCROSS
]
= pulsesep(...)FINALCROSS
,
of the final transition of each pulse.
[
returns the mid-reference level instants, S
,INITCROSS
,FINALCROSS
,NEXTCROSS
]
= pulsesep(...)NEXTCROSS
,
of the next detected transition after each pulse.
[
returns the mid-reference level, S
,INITCROSS
,FINALCROSS
,NEXTCROSS
,MIDLEV
]
= pulsesep(...)MIDLEV
.
[
returns
the pulse separations with additional options specified by one or
more S
,INITCROSS
,FINALCROSS
,NEXTCROSS
,MIDLEV
]
= pulsesep(...,Name,Value
)Name,Value
pair arguments.
pulsesep(...)
plots the signal and darkens
the regions between each pulse where pulse separation is computed.
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: |
|
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: |
|
Pulse separations in seconds. The pulse separation is defined as the time between the mid-reference level instants of the final transition of one pulse and the initial transition of the next pulse. See Pulse Separation. |
|
Mid-reference level instants of initial transition. |
|
Mid-reference level instants of final transition. |
|
Mid-reference level instants of the initial 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.