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 midreference level instants of the initial transition
of each positivepolarity pulse and the next positivegoing transition
in the bilevel waveform,X
. If pulseperiod
does
not find two positivepolarity 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 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 pulseperiod
uses
interpolation to determine the midreference level instants, P
may
contain values that do not correspond to sampling instants of the
bilevel waveform, X
.
specifies
the sampling 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 midreference 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 midreference level instants, P
may contain
values that do not correspond to sampling instants of the bilevel
waveform, X
.
[
returns the midreference level instants
of the first transition of each pulse.P
,INITCROSS
]
= pulseperiod(...)
[
returns the midreference level instants
of the final transition of each pulse.P
,INITCROSS
,FINALCROSS
]
= pulseperiod(...)
[
returns the midreference level instants
of next detected transition after each pulse.P
,INITCROSS
,FINALCROSS
,NEXTCROSS
]
= pulseperiod(...)
[
returns the midreference 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 

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

Pulse polarity. Specify the polarity as Default: 

Low and highstate levels. 

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

Pulse period in seconds. The pulse period is defined as the time between the midreference level instants of two consecutive transitions. 

Midreference level instant of initial transition. 

Midreference level instant of final transition. 

Midreference level instant of the first pulse 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.