zplane - don't the zeros and poles need to be complex?
7 次查看(过去 30 天)
显示 更早的评论
I'm just getting my head around the zplane function. I'm not how the values of z and p are mapped onto the pole-zero plot. I thought zeros and poles were supposed to have both real and imaginary parts - as these are the axes of the pole-zero plot. But in the examples of zplane code given in the help documentation the z and p values are just single real values. Also, for a 4 pole/zero filter there are 5 values for z and also for p. Shouldn't this be four?
1 个评论
Matt Fig
2012-11-2
I'm just getting my head around the zplane function. I'm not how the values of z and p are mapped onto the pole-zero plot. I thought zeros and poles were supposed to have both real and imaginary parts - as these are the axes of the pole-zero plot. But in the examples of zplane code given in the help documentation the z and p values are just single real values. Also, for a 4 pole/zero filter there are 5 values for z and also for p. Shouldn't this be four?
采纳的回答
Honglei Chen
2012-5-22
zplane is a little subtle. When B and A are rows, they represent transfer functions. However, if B and A are columns, they are zeros and poles.
Compare
[b,a] = ellip(4,.5,20,.6);
zplane(b,a)
zplane(roots(b),roots(a))
6 个评论
Honglei Chen
2012-5-24
Hi Tom, in your code, b and a are coefficients. So if you want to use zplane, you need to keep them in the row form and zplane will automatically calculate zeros and poles for you and display in the figure.
On the other hand, if you want to pass in column vectors, then zplane treat them as just zeros and poles. In this case, you need to compute zeros and poles yourself before passing it into the function. So you need to do zplane(roots(b),roots(a)).
HTH
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Digital Filter Analysis 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!