Changes

Jump to navigation Jump to search

Control package

48 bytes added, 06:07, 29 September 2015
==== Bode Diagram for TikZ/PGFplots ====
We use the same system as before but we draw now with the <code style="font-size:14px; border:solid lightgray 1px; padding: 2px">bode(P)</code> a bode diagram.The output is then written to a .csv file.
<!-- {{SyntaxHighlight| -->
{{Code|Creating a transfer function and plotting calculating its responsebode diagram|<syntaxhighlight lang="octave" style="font-size:14px"> T1 = 0.4; # time constant P = tf([1], [T1 1]);
[mag, pha, w] = bode(P);
csvwrite("dat/bode_p.csv", [w', 20*log10(mag), pha]);
</syntaxhighlight>}}
<!-- {{SyntaxHighlight| -->
{{Code|Creating a transfer function and plotting its responsebode diagram with pgfplots|<syntaxhighlight lang="latex" style="font-size:14px">
\documentclass[tikz]{standalone}
\usepackage{pgfplotstable}
[[File:bode_p.png]]
Try also (It can be seen that a first order low-pass filter has <math display="inline">-3db 3\,db</math> magnitude at <math display="inline">f=1/T1)T_1</math>.
=== Inverted Pendulum ===
501

edits

Navigation menu