(I) The Unit Step Matlab Code:: Problem - 1
(I) The Unit Step Matlab Code:: Problem - 1
(i)
(ii)
Matlab code:
ti=0:0.001:10;
for eta = 0:0.2:1
num =[25];
den= [1 10*eta 0];
sys=tf(num,den);
T=feedback(sys,1);
impulse(ti,T);
hold on;
end
hold off
figure;
plot(eta,ts,'LineWidth',4,'MarkerEdgeColor','k',...
'MarkerFaceColor','g','MarkerSize',10);
hold on
ylabel('Settling Time (in secs) -->');
xlabel('eta -->');
hold off
figure;
plot(eta,po,'LineWidth',4,'MarkerEdgeColor','k',...
'MarkerFaceColor','g','MarkerSize',10);
hold on
ylabel('Peak Overshoot (in %) -->');
xlabel('eta -->');
hold off
Step response
Impulse Response