use matlab to find the poles and zeros of the following functions. 𝑀(𝑠) = 𝑒 to the power of −2𝑠 /10𝑠(𝑠 + 1)(𝑠 + 2) in matlab

You can use the tf function to create a transfer function model in MATLAB. Here's how you can find the poles and zeros of the given transfer function 𝑀(𝑠):

main.m
% Define the transfer function
num = exp(-2*s);
den = 10*poly([0, -1, -2]); % Define the denominator as (s)(s + 1)(s + 2)

M = tf(num, den);

% Find poles and zeros
poles_M = pole(M);
zeros_M = zero(M);
203 chars
10 lines

Now you can access the poles of the transfer function using poles_M and zeros using zeros_M.

gistlibby LogSnag