Slew rate of bilevel waveform
S = slewrate(X)
S = slewrate(X,Fs)
S = slewrate(X,T)
[S,LT,UT]
= slewrate(...)
[S,LT,UT,LL,UL]
= slewrate(...)
S = slewrate(...,Name,Value)
slewrate(...)
returns
the slew rate for all transitions found in the bilevel waveform, S
= slewrate(X
)X
.
The slew rate is the slope of the line connecting the 10% and 90%
reference levels. The sample instants of X
are
the indices of the vector. To determine the transitions, slewrate
estimates
the state levels of the input waveform by a histogram method. slewrate
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.
specifies
the sample rate, S
= slewrate(X
,Fs
)Fs
, in hertz. The first time
instant in X
corresponds to t=0.
specifies
the sample instants in the vector, S
= slewrate(X
,T
)T
. The length
of T
must equal the length of X
.
[
returns the time instants when the waveform
crosses the lower-percent reference level, S
,LT
,UT
]
= slewrate(...)LT
,
and upper-percent reference level, UT
. If you
do not specify lower- and upper-percent reference levels, the levels
default to 10% and 90%.
[
returns the waveform values that correspond
to the lower-reference levels, S
,LT
,UT
,LL
,UL
]
= slewrate(...)LL
, and upper-reference
levels, UL
.
returns
the slew rate for all transitions with additional options specified
by one or more S
= slewrate(...,Name,Value
)Name,Value
pair arguments.
slewrate(...)
plots the bilevel waveform
and darkens the regions of each transition where the slew rate is
computed. The plot marks the lower- and upper-reference level crossings
and associated reference levels. The plot indicates the state levels
and associated lower and upper tolerances.
|
Bilevel waveform as a real-valued column or row vector. If the
input waveform does not have at least one transition, |
|
Sampling rate in hertz. |
|
Vector of sample instants. The length of |
|
Percent reference levels. See Percent Reference Levels for a definition. Default: |
|
Low- and high-state levels. |
|
Tolerance levels (lower and upper state boundaries) expressed as a percentage. See State-Level Tolerances. Default: |
|
Slew rates as real-valued scalars. A positive slew rate indicates that the upper-percent reference level occurs later than the lower-percent reference level. A negative slew rate indicates that the upper-percent reference level occurs before the lower-percent reference level. |
|
Time instants when signal crosses the lower percent reference
level. If you do not specify the lower percent reference levels with
the |
|
Time instants when signal crosses the upper-percent reference
level. If you do not specify the upper-percent reference levels with
the |
|
Waveform values at the lower-reference level. |
|
Waveform values at the upper-reference level. |
[1] IEEE® Standard on Transitions, Pulses, and Related Waveforms, IEEE Standard 181, 2003.
falltime
| midcross
| pulsewidth
| risetime
| settlingtime
| statelevels