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 midreference
level instants of the final negativegoing transitions of every positivepolarity
pulse and the next positivegoing 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 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. Because pulsesep
uses
interpolation to determine the midreference 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
midreference 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 midreference level instants, S
may
contain values that do not correspond to sampling instants of the
bilevel waveform, X
.
[
returns the midreference level instants, S
,INITCROSS
]
= pulsesep(...)INITCROSS
,
of the first positivepolarity transitions.
[
returns the midreference level instants, S
,INITCROSS
,FINALCROSS
]
= pulsesep(...)FINALCROSS
,
of the final transition of each pulse.
[
returns the midreference level instants, S
,INITCROSS
,FINALCROSS
,NEXTCROSS
]
= pulsesep(...)NEXTCROSS
,
of the next detected transition after each pulse.
[
returns the midreference 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 

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: 

Pulse separations in seconds. The pulse separation is defined as the time between the midreference level instants of the final transition of one pulse and the initial transition of the next pulse. See Pulse Separation. 

Midreference level instants of initial transition. 

Midreference level instants of final transition. 

Midreference level instants of the initial transition after the final transition of the preceding pulse. 

Waveform value that corresponds to the midreference level. 
[1] IEEE^{®} Standard on Transitions, Pulses, and Related Waveforms, IEEE Standard 181, 2003.