final control assignment (Autosaved)-1
final control assignment (Autosaved)-1
MATLAB CODE :
% Plotting
figure;
grid on;
xlabel('Time (s)');
ylabel('y(t)');
title('Accelerometer Response');
Response of Accelerometer:
Q2. Plot the root locus of the following response:
Root Locus :
The root locus is a graphical method used in control engineering to study how the roots (or poles) of a
system's characteristic equation move in the complex plane as a gain K varies from 0 to ∞.
● tf(num, den) creates the transfer function H(s) = 9 / (s² + 10s + 9).
● disp('The transfer function H(s) is:') = This will automatically print the transfer function in
nice format
● figure; = Open a new figure window
● rlocus(H); = Plot the root locus
● title('Root Locus of H(s) = 9 / (s^2 + 10s + 9)'); = Add a title
● xlabel('Real Axis'); = Label X-axis
● ylabel('Imaginary Axis'); = Label Y-axis
● grid on; = Enable grid lines on the plot for better visualization.
ROOT LOCUS OF GIVEN RESPONSE : 𝐻(𝑆) = 9/(𝑆 + 1)(𝑆 + 9)
RESULTS :
● The root locus plot was successfully generated.
● The poles of the system were located at:
● S = -1 ans S= -9
● The root locus showed that as the gain increases, the poles remain on the real axis and
move further apart (still in the stable region).
CONCLUSION:
The root locus is a useful tool to understand how system stability and behavior change with
different gain values.
In our case, the transfer function showed that the system is stable for all positive gain values.
MATLAB made it easy to visualize the root movement and analyze the system without manual
calculations.