plot the pole zero map of a given transfer function in matlab

To plot the pole-zero map of a given transfer function in MATLAB, you can use the pzmap function. The pzmap function is used to plot the poles and zeros of a transfer function on the complex plane.

First, you need to define your transfer function. Let's say your transfer function is represented by the numerator and denominator coefficients:

main.m
num = [1];
den = [1, 2, 1];
28 chars
3 lines

Then, you can use the tf function to create a transfer function object from the numerator and denominator coefficients:

main.m
tf_sys = tf(num, den);
23 chars
2 lines

Finally, you can use the pzmap function to plot the pole-zero map of the transfer function:

main.m
pzmap(tf_sys);
15 chars
2 lines

This will open a figure window that displays the pole-zero map of your transfer function.

Note: Make sure you have the Control Systems Toolbox installed in MATLAB, as it provides the pzmap function.

gistlibby LogSnag