Uploaded by Samarth Hirve

Rohit Gupta (A3)SS Experiment 5

advertisement
Sardar Patel Institute of Technology
Bhavan’s Campus, Munshi Nagar, Andheri (West), Mumbai-400058-India
(Autonomous Institute Affiliated to University of Mumbai)
Academic Year: 2022-23
Class: SE EXTC - A
Experiment No - 05
Subject: Signals and System
Semester: IV
Batch: A3
Name: Rohit Gupta
Roll No.:2021200035
Title:
Aim:
Software
Required:
Program:
Laplace Transform
To obtain pole – zero plot, impulse response and step response with its parameters of the
give transfer function. Also obtain the transfer function from the give zeroes and poles.
 MATLAB
%Question 1
clear
close all
clc
%pole-zero plot
figure(1)
sys = tf([0 10 0],[1 2 2 2]);
h = pzplot(sys);
grid on
%impulse response
figure(2)
impulse(sys)
%step response and its parameters
figure(3)
step(sys)
stepinfo(sys)
%transfer function from poles and zeroes
k=4;
z=[0,0]';
p=roots([1 5 2 -8]);
[b,a] = zp2tf(z,p,k)
%Question 2
clear
close all
clc
%pole-zero plot
figure(1)
sys = tf([4 0 0],[1 5 2 -8]);
h = pzplot(sys);
grid on
%impulse response
figure(2)
impulse(sys)
%step response and its parameters
figure(3)
step(sys)
stepinfo(sys)
%transfer function from poles and zeroes
k=1;
z=[3]';
p=roots([1 4 5 4 4]);
[b,a] = zp2tf(z,p,k)
%Question 3
clear
close all
Sardar Patel Institute of Technology
Bhavan’s Campus, Munshi Nagar, Andheri (West), Mumbai-400058-India
(Autonomous Institute Affiliated to University of Mumbai)
Academic Year: 2022-23
clc
%pole-zero plot
figure(1)
sys = tf([1 -3],[1 4 5 4 4]);
h = pzplot(sys);
grid on
%impulse response
figure(2)
impulse(sys)
%step response and its parameters
figure(3)
step(sys)
stepinfo(sys)
%transfer function from poles and zeroes
k=10;
z=[0]';
p=roots([1 2 2 2]);
[b,a] = zp2tf(z,p,k)
Result
Question 1
Sardar Patel Institute of Technology
Bhavan’s Campus, Munshi Nagar, Andheri (West), Mumbai-400058-India
(Autonomous Institute Affiliated to University of Mumbai)
Academic Year: 2022-23
Question 2
Sardar Patel Institute of Technology
Bhavan’s Campus, Munshi Nagar, Andheri (West), Mumbai-400058-India
(Autonomous Institute Affiliated to University of Mumbai)
Academic Year: 2022-23
Sardar Patel Institute of Technology
Bhavan’s Campus, Munshi Nagar, Andheri (West), Mumbai-400058-India
(Autonomous Institute Affiliated to University of Mumbai)
Academic Year: 2022-23
Question 3
Sardar Patel Institute of Technology
Bhavan’s Campus, Munshi Nagar, Andheri (West), Mumbai-400058-India
(Autonomous Institute Affiliated to University of Mumbai)
Academic Year: 2022-23
Conclusion:
1. We learnt about the basic functions of MATLAB tf ,pzplot ,impulse ,step ,stepinfo
and zp2tf.
2. We learnt about plotting of the pole zero plot , impulse response and step response
with its parameters of a given transfer function.
3. We also learnt how to obtain a transfer function from given poles and zeroes.
Download