Control package: Difference between revisions

80 bytes added ,  29 September 2015
Line 451: Line 451:
== Examples ==
== Examples ==


=== PT1/low-pass filter step response ===
=== PT1 / Low-pass filter step response ===
<!-- {{SyntaxHighlight| -->
<!-- {{SyntaxHighlight| -->
{{Code|Creating a transfer function and plotting its response|<syntaxhighlight lang="octave" style="font-size:13px">
{{Code|Creating a transfer function and plotting its response|<syntaxhighlight lang="octave" style="font-size:14px">
  T1=0.4;              # time constant
  T1=0.4;              # time constant
  P=tf([1], [T1 1])    # create transfer function model
  P=tf([1], [T1 1])    # create transfer function model
Line 468: Line 468:
[[File:Pt1.png|600px]]
[[File:Pt1.png|600px]]


Try also bode(P)!  
Try also <code style="font-size:14px; border:solid lightgray 1px; padding: 2px">bode(P)</code>!  
(a first order low-pass filter has -3db magnitude at f=1/T1)
(a first order low-pass filter has -3db magnitude at f=1/T1)


501

edits