Editing Control package
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 7: | Line 7: | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
! Chapter !! Function !! Implemented !! File | ! Chapter !! Function !! Implemented !! File !! Status | ||
|- | |- | ||
| rowspan=" | | rowspan="3" | Basic Models || tf || yes || @tf/tf.m || | ||
|- | |- | ||
| | | zpk || yes || zpk.m || | ||
|- | |- | ||
| | | ss || yes || @ss/ss.m || | ||
| | |||
| | |||
|- | |- | ||
|} | |} | ||
=== Model Interconnection === | === Model Interconnection === | ||
=== Model Transformation === | === Model Transformation === | ||
=== Linear Analysis === | === Linear Analysis === | ||
=== Control Design === | === Control Design === | ||
=== Matrix Computations === | === Matrix Computations === | ||
== Some very basic examples == | |||
=== PT1/low-pass filter step response === | |||
<!-- {{SyntaxHighlight| --> | <!-- {{SyntaxHighlight| --> | ||
{{Code|Creating a transfer function and plotting its response|<syntaxhighlight lang="octave" style="font-size: | {{Code|Creating a transfer function and plotting its response|<syntaxhighlight lang="octave" style="font-size:13px"> | ||
T1 = 0.4; | T1=0.4; # time constant | ||
P = tf([1], [T1 1]) | P=tf([1], [T1 1]) # create transfer function model | ||
step(P, 2) # plot step response | step(P,2) # plot step response | ||
#add some common markers like the tangent line at the origin, which crosses lim(n->inf) f(t) at t=T1 | #add some common markers like the tangent line at the origin, which crosses lim(n->inf) f(t) at t=T1 | ||
hold on | hold on | ||
plot ([0 T1], [0 1], " | plot ([0 T1], [0 1],"g") | ||
plot ([T1 T1], [0 1], " | plot ([T1 T1], [0 1],"k") | ||
plot ([0 T1], [1-1/e 1-1/e],"m") | |||
hold off | hold off | ||
</syntaxhighlight>}} | </syntaxhighlight>}} | ||
Line 478: | Line 46: | ||
[[File:Pt1.png|600px]] | [[File:Pt1.png|600px]] | ||
Try also bode(P)! | |||
(a first order low-pass filter has -3db magnitude at f=1/T1) | |||
[[Category:Octave Forge]] | [[Category:Octave-Forge]] |