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

In MATLAB, you can find the poles and zeros of a transfer function by first defining the transfer function using the tf command and then using the roots function to find the poles and zeros. Here's how you can do it for the given function 𝑀(𝑠) = 𝑒^(-2𝑠)/(10𝑠(𝑠 + 1)(𝑠 + 2)):

main.m
numerator = exp(-2*s);
denominator = 10*s*(s + 1)*(s + 2);

M = tf(numerator, denominator);

poles = pole(M)
zeros = zero(M)
125 chars
8 lines

In the code above:

  • We define the numerator and denominator of the transfer function.
  • Create a transfer function M using the tf function.
  • Use the pole function to find the poles and zero function to find the zeros of the transfer function M.

This code will output the poles and zeros of the given transfer function.

related categories

gistlibby LogSnag