summaryrefslogtreecommitdiff
path: root/help/en_US/slewrate.xml
blob: c2a9002b226842b3069bd9b0f12058bab7fe1767 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?xml version="1.0" encoding="UTF-8"?>

<!--
 *
 * This help file was generated from slewrate.sci using help_from_sci().
 *
 -->

<refentry version="5.0-subset Scilab" xml:id="slewrate" xml:lang="en"
          xmlns="http://docbook.org/ns/docbook"
          xmlns:xlink="http://www.w3.org/1999/xlink"
          xmlns:svg="http://www.w3.org/2000/svg"
          xmlns:ns3="http://www.w3.org/1999/xhtml"
          xmlns:mml="http://www.w3.org/1998/Math/MathML"
          xmlns:scilab="http://www.scilab.org"
          xmlns:db="http://docbook.org/ns/docbook">

  <refnamediv>
    <refname>slewrate</refname>
    <refpurpose> returns the slew rate for all transitions found in the bilevel waveform</refpurpose>
  </refnamediv>

<refsynopsisdiv>
   <title>Calling Sequence</title>
   <synopsis>
     s=slewrate(x)
     s=slewrate(x, t)
     s=slewrate(x, Fs)
     s=slewrate(x, t, 'PercentReferenceLevels', N )
     s=slewrate(x, t, 'Tolerance', M)
     s=slewrate(x, t,'StateLevels', O)

     [s lowercrossvalue uppercrossvalue lowerreference upperreference]=slewrate(x)
     [s lowercrossvalue uppercrossvalue lowerreference upperreference]=slewrate(x, t)
     [s lowercrossvalue uppercrossvalue lowerreference upperreference]=slewrate(x, Fs)
     [s lowercrossvalue uppercrossvalue lowerreference upperreference]=slewrate(x, t, 'PercentReferenceLevels', N )
     [s lowercrossvalue uppercrossvalue lowerreference upperreference]= slewrate(x, t, 'Tolerance', M)
     [s lowercrossvalue uppercrossvalue lowerreference upperreference]= slewrate(x, t,'StateLevels', O)
     [s lowercrossvalue uppercrossvalue lowerreference upperreference]= slewrate(x, t,'StateLevels', O, 'fig', on or off)

   </synopsis>
</refsynopsisdiv>




<refsection>
   <title>Description</title>
 returns the slew rate for all transitions found in the bilevel waveform, 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.
</refsection>


<refsection>
   <title>Examples</title>
   <programlisting role="example"><![CDATA[
 x=[ones(1,25)  -ones(1,25)  ones(1,25) ]
 t=1:length(x)
 s=slewrate(x,t)
   //EXPECTED OUTPUT:
    //s  = - 2  2

   ]]></programlisting>
</refsection>




</refentry>