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

TASK:1(b)

h=tf([1],[20 1])
stepplot(h)
title('STEP RESPONSE : Syeda Ume Rubab : 16-EE-03')

TASK:1(c)
h=tf([1],[50 1])
stepplot(h)
title('STEP RESPONSE : Syeda Ume Rubab : 16-EE-03')
TASK:2(a)
h=tf([3],[3 1])
stepplot(h)
title('STEP RESPONSE : Syeda Ume Rubab : 16-EE-03')

TASK:2(b)
t=0:0.1:10
input=t
h=tf([3],[3 1])
y=lsim(h,input,t)
plot(y)
xlabel('Time')
ylabel('Amplitude')
title('STEP RESPONSE : Syeda Ume Rubab : 16-EE-03')
TASK:2(c)
t=0:0.1:10
input=sin(t)
h=tf([3],[3 1])
y=lsim(h,input,t)
plot(y)
xlabel('Time')
ylabel('Amplitude')
title('STEP RESPONSE : Syeda Ume Rubab : 16-EE-03')

t=0:0.1:10
input=sin(30*t)
h=tf([3],[3 1])
y=lsim(h,input,t)
plot(y)
xlabel('Time')
ylabel('Amplitude')
title('STEP RESPONSE : Syeda Ume Rubab : 16-EE-03')
TASK:3

h=tf([8],[1 10])
stepplot(h)
title('STEP RESPONSE : Syeda Ume Rubab : 16-EE-03')

You might also like