๐‘€(๐‘ ) = ๐‘’ to the power ofโˆ’2๐‘  / 10๐‘ (๐‘  + 1)(๐‘  + 2).find the poles and zeros of the following function in matlab

main.m
syms s
M = exp(-2*s) / (10*s*(s+1)*(s+2));

poles = solve(10*s*(s+1)*(s+2) == 0, s);
zeros = solve(exp(-2*s) == 0, s);

disp("Poles:");
disp(poles);

disp("Zeros:");
disp(zeros);
179 chars
12 lines

This MATLAB code calculates the poles and zeros of the given transfer function (๐‘€(๐‘ ) = \frac{e^{-2s}}{10s(s+1)(s+2)}).

related categories

gistlibby LogSnag