Lab Report 3
Lab Report 3
Name(s):
Introduction:
When we study the analysis of the transient state and steady state
response of control system it is very essential to know a few basic
terms, and these are described below.
Standard Input Signals: These are also known as test input signals.
The input signal is very complex in nature, it is complex because it
may be a combination of various other signals. Thus, it is very
difficult to analyze characteristic performance of any system by
applying these signals. So, we use test signals or standard input
signals which are very easy to deal with. We can easily analyze the
characteristic performance of any system more easily as compared
to nonstandard input signals.
There are various types of standard input signals, and they are
written below:
Unit Impulse Signal : In the time domain it is represented by ∂(t).
The Laplace transformation of unit impulse function is 1 and the
corresponding waveform associated with the unit impulse function
is shown below.
num=[3 12];
den=[1 3 12];
sys=tf(num,den);
step(sys)
grid
t=0:0.01:9;
num=[3 12];
den=[1 3 12];
sys=tf(num,den);
step(sys,t)
grid
title('unit-step Response',Fontsize',14');
xlable('t',Fontsize',14');
ylable('Output y',Fontsize',14');
t=0:0.01:5;
num1=[1];
den1=[1 3 0];
sys1=tf(num1,den1);
sys=feedback(12*sys1,[1]);
[C,t]=step(sys,t);
plot(t,C)
grid
title('unit-step Response C(s)/R(s)');
xlable('t Sec');
ylable('Output t6o Unit-step Response Input')
t=0:0.01:22;
K=[3 15 30];
for n=1:3;
numg=[K(n)];
deng=[1 9 14 0];
sysg=tf(numg,deng);
sys=feedback(sysg,[1]);
y(:,n)=step(sys,t);
end
plot(t,y)
grid
title('unit-step Response Curves for K=3,15,30');
xlabel('t Sec')
ylabel('Outputs')
text(2.5,1.3,'K =30')
text(4.5,0.9,'K=15')
text(4.5,0.5,'K=3')
t=0:0.01:22;
K=[3 15 30];
for n=1:3;
numg=[K(n)];
deng=[1 9 14 0];
sysg=tf(numg,deng);
sys=feedback(sysg,[1]);
y(:,n)=step(sys,t);
end
subplot(2,2,1),plot(t,y(:,1)),grid,xlabel('t
Sec'),ylabel('Outputs')
text(9,0.8,'K=3')
subplot(2,2,2),plot(t,y(:,2)),grid,xlabel('t
Sec'),ylabel('Outputs')
text(9,0.7,'K=15')
subplot(2,2,3),plot(t,y(:,3)),grid,xlabel('t
Sec'),ylabel('Outputs')
text(9,1.3,'K=30')
sys4 =
20
-----------------------
s^3 + 5 s^2 + 14 s + 20
num2=[2];
den2=[1 4];
sys2=tf(num2,den2);
num3=[1];
den3=[1 0];
sys3=tf(num3,den3);
sys4=series(sys1,sys2);
sys5=feedback(sys4,[1]);
sys6=feedback(0.75*sys5*sys3,[1])
[C,t]=step(sys6,t);
plot(t,C)
title('Unit-step Response C(s)/R(s)');
xlabel('t Sec')
ylabel('Output c(t)')
sys6 =
1.5
-----------------------
s^3 + 4 s^2 + 2 s + 1.5
By the end of this lab, we learned how to use MATLAB to create a Nyquist
plot.
In addition, there are criteria for each parameter that define the system's
stability.
References:
2. https://www.cds.caltech.edu/~murray/courses/cds101/fa03/caltech/am03_c
h6-1nov03.pdf
3. https://www.mathworks.com/discovery/transfer-function.html