214k views
0 votes
How do you find the zeros, poles, and gains in MATLAB from a transfer function? How do you use those same values to go back to the transfer function?

a) 'zpk()' function; 'tf2zpk()' function
b) 'find_tf_properties()' command; 'tfback()' command
c) 'zp_k_values()' function; 'restore_tf()' command
d) Enter 'get_tf_values' and 'restore_tf' in the command window

User Yann
by
8.2k points

1 Answer

4 votes

Final answer:

To find the zeros, poles, and gain of a transfer function in MATLAB, use the 'tf2zpk()' function, and to reconstruct the transfer function from those values, use the 'zpk()' function.

Step-by-step explanation:

In MATLAB, to find the zeros, poles, and gains of a transfer function, you can use the 'tf2zpk()' function. This function takes a transfer function as the input and returns the zeros, poles, and gain of the system. Here is an example:

[z,p,k] = tf2zpk(num, den);

'num' and 'den' are the numerator and denominator of the transfer function, respectively.

To reconstruct the transfer function from the zeros, poles, and gain, you can use the 'zpk()' function with the obtained values:

H = zpk(z, p, k);

Where 'z' is the zeros array, 'p' is the poles array, and 'k' is the gain of the transfer function.

User Clawesome
by
8.0k points