Cs Assignment
Cs Assignment
ASSIGNMENT – I
SUBMITTED BY
CHRISTABEL BENITA S P
(2022105007)
QUESTION 1:
Matlab code:
% Define the system transfer function T(s) = 10 / (s^2 +
4s + 10)
clc;clear all;close all;
num = 10; % Numerator of the transfer function
den = [1 4 10]; % Denominator of the transfer function
sys = tf(num, den); % Create the transfer function in
MATLAB
QUESTION 2
Matlab code:
% Define the system transfer function T(s) = 5 / (s^2 + 4s
+ 5)
num = 5; % Numerator of the transfer function
den = [1 4 5]; % Denominator of the transfer function
sys = tf(num, den); % Create the transfer function in MATLAB
% Step response of the system
t = 0:0.01:10; % Time vector from 0 to 10 seconds
step_response = step(sys, t);
% Plot the step response
figure;
plot(t, step_response, 'k');
title('Step Response of the System T(s) = 5 / (s^2 + 4s +
5)',’Fontsize’,30);
xlabel('Time (seconds)');
ylabel('Amplitude (V)');
grid on;
% Analyze the step response to get rise time, settling time,
and overshoot
info = stepinfo(sys);
% Display the step response information
disp('Step Response Information:');
disp(info);
Output:
Inference:
Rise Time: The system's rise time (around 1.27 seconds) suggests that it reaches
a significant portion of its final value relatively quickly. This indicates that the
system is responsive and can react promptly to sudden changes.
Overshoot (~18.6%): This system has a slight overshoot, which is typical of an
underdamped second-order system.
Settling Time (~1 sec): The system stabilizes fairly quickly. A faster settling time
means the system reaches a steady state more efficiently, which is a positive
attribute for applications requiring stability and minimal sustained oscillations
after a disturbance.
Based on its overshoot and oscillatory response, this system can be classified as
underdamped. Such systems are usually preferred when a balance between
responsiveness and overshoot is needed, as the overshoot is manageable and the
response is quick.