Simulink

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Unit-step response

Unit ramp response

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- Impulse response


subplot(3,1,3)
impulse(num,den,t)
grid
title('Unit-Impulse Response')
xlabel('t Sec')
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)

You might also like