Plotting poles and zeros
5 次查看(过去 30 天)
显示 更早的评论
When i run the following code it gives me error Check for incorrect argument data type or missing argument in call to function 'pzplot'.
MATLAB Code:
figure(3)
pzplot(b,a)
axis square
xlabel('Real'); ylabel('Imag');
title('Poles and Zeros of Butterworth IIR filter')
Wondering what the problem is.
0 个评论
回答(1 个)
Star Strider
2022-5-11
I am also wondering, however I am reasonably confident that ‘b’ and ‘a’ are not derived from a Control System Toolbox tf function (that pzplot is used with), and instead are from a Signal Processing Toolbox filter function, or something similar. If my guess is correct, the zplane funciton would be appropriate if it is a discrete filter. (I cannot find a similar function for analog prototypes, so simply plotting the real and imaginary components of the poles and zeros for an analog filter, with their appropriate symbols, would be necessary.)
2 个评论
Star Strider
2022-5-11
All the code does is plot!
For a continuous time filter, use the roots function separately on the numerator and denominator or use the tf2zp function to get the poles and zeros as complex quantities. To convert it to a discrete filter, the easiest way is to use the bilinear function, however I do not know what instructions you were given in that regard with respect to what appears to be a homework problem.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Digital Filtering 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!