matlab tf get poles

To get the poles of a transfer function in MATLAB, you can use the pole function. This function returns the poles of the transfer function as a column vector.

Here is an example of how to use the pole function:

% Define the transfer function
num = [1];
den = [1, 2, 1];
sys = tf(num, den);

% Get the poles
p = pole(sys);

In this example, we define a transfer function with the numerator coefficients [1] and the denominator coefficients [1, 2, 1]. We then use the pole function to get the poles of the transfer function and store them in the variable p.