% This example uses Matlab to draw the root locus 
% for question E7.1.

% Modify this function to compute the rool locus
% for the other problems to check your answers.

% Clear the Matlab workspace
clear all;

% Define the numerator & denominator of the OL xfer func
num = [1 4 0];      % s^2 + 4s + 0
den = [1 2 2];      % s^2 + 2s + 2

% Create a transfer function from the num & denom
GH = tf(num, den);

% Plot the root locus
figure(1);
clf;
rlocus(GH);
axis equal;
