What is the output of the following code? [code]tf2zp({1 2}, {2 1}) [/code]

What is the output of the following code?
Code:
tf2zp({1 2}, {2 1})
A. 0
B. Returns the zeros and poles of the transfer function (s+2)/(2s+1)
C. Syntactical Error
D. Logical Error
 
Answer: c
Explanation: The input to the tf2zp command cannot be cellular arrays. But we’ve used {} in the above code and this leads to a syntactical error in MATLAB.
 

Tìm kiếm

Back
Top