Professional Documents
Culture Documents
Simulink
Simulink
Simulink
Unit-impulse response
% Unit-Step Response % Unit-Ramp Response
num=[0 0 10]; num=[0 0 0 10];
den=[1 2 10]; den=[1 2 10 0];
t=0:0.01:10; c=step(num,den,t);
subplot(3,1,1) subplot(3,1,2)
step(num,den,t) plot(t,c,'-',t,t,'--')
grid grid
title('Unit-Step Response') title('Unit-Ramp Response')
xlabel('t Sec') xlabel('t Sec')
ylabel('c(t)') ylabel('c(t)')
Unit-Step Response
2
1
c(t)
0
0 1 2 3 4 5 6 7 8 9 10
t Sec (sec)
Unit-Ramp Response
10
c(t)
0
0 1 2 3 4 5 6 7 8 9 10
t Sec
Unit-Impulse Response
2
1
c(t)
0
0 1 2 3 4 5 6 7 8 9 10
t Sec (sec)