# Pikir dan Rasa

cogito ergo sum

## Control Systems/Root Locus – Wikibooks, open books for an open world

Example: Root-Locus Using MATLAB/Octave

Use MATLAB, Octave, or another piece of mathematical simulation software to produce the root-locus graph for the following system:

$T(s) = K\frac{s + 2}{(s + 3)(s^2 + 2s + 2)}$

First, we must multiply through in the denominator:

D(s) = s3 + 5s2 + 8s + 6

Now, we can generate the coefficient vectors from the numerator and denominator:

num = [0 0 1 2];
den = [1 5 8 6];

Next, we can feed these vectors into the rlocus command:

rlocus(num, den);

Note:In Octave, we need to create a system structure first, by typing:

sys = tf(num, den);
rlocus(sys);