%zero and ploes% g('s')=(s-3)(6+4se^-2s+3e^-4s)/(s+2)(s^2+3s+2); in matlab

To find the zeros and poles of a transfer function in MATLAB, you can use the zero and pole functions.

Here is how you can do it for the given transfer function g(s):

main.m
num = [1 -3];
den = conv(conv([1 4], [1 2 3]), [1 2]);
sys = tf(num, den);

zeros = zero(sys)
poles = pole(sys)
112 chars
7 lines

Here we first create the transfer function sys using the numerator and denominator coefficients. Then we use the zero function to find the zeros and the pole function to find the poles of the transfer function.

Make sure you have the Control System Toolbox installed in MATLAB to use the functions.

This code will provide you with the zeros and poles of the transfer function g(s).

gistlibby LogSnag