Impact-Site-Verification: dbe48ff9-4514-40fe-8cc0-70131430799e

Search This Blog

MATLAB Solution and Plot of poles and zeros of Z-transform

MATLAB PROGRAM:

%Compute and plot poles and zeros of Z-transform

clc;

clear all;

close all;

NUM=input('Input the numerator polynomial:');

DEN=input('Input the denominator polynomial:');

TRANF=tf(NUM,DEN)

[ZEROS POLES GAIN]=tf2zp(NUM,DEN);

 

disp('Poles of transfer function are:');

disp(POLES);

disp('Zeros of transfer function are:');

disp(ZEROS);

disp('Gain of transfer function are:');

disp(GAIN);

zplane(NUM,DEN);

Output

Input the numerator polynomial:[2 3 1]
Input the denominator polynomial:[1 2 0 2 3 4]
TRANF =

         2 s^2 + 3 s + 1
  -----------------------------
  s^5 + 2 s^4 + 2 s^2 + 3 s + 4

Continuous-time transfer function.

Poles of transfer function are:
  -2.2797 + 0.0000i
   0.7957 + 1.0242i
   0.7957 - 1.0242i
  -0.6559 + 0.7829i
  -0.6559 - 0.7829i

Zeros of transfer function are:
   -1.0000
   -0.5000

Gain of transfer function are:
     2


Plot:

Poles Zeros

No comments

Popular Posts