How to plot the magnitude and the phase of this function f(1/z)=(0.5 + 000i)*z^(−1 )+ (0.2500 − 0.4330i)*z^(−2) + (−0.2500 − 0.4330i)*z^(−3)?
1 次查看(过去 30 天)
显示 更早的评论
Thank you for every one helped me to understand how to plot comples function ,Torsten and David xplain ed different ways to plot this function which finally gave the same result.(Many thanks)
In my question, when this function is in(1/z) .
How can we plot this function
f(1/z)=(0.5 + 000i)*z^(−1 )+ (0.2500 − 0.4330i)*z^(−2) + (−0.2500 − 0.4330i)*z^(−3)?
I appreciate any help.
0 个评论
采纳的回答
David Goodmanson
2022-5-21
Hello Aisha,
technically this equation should read
f(z)=(0.5 + 000i)*z.^(−1 )+ (0.2500 − 0.4330i)*z.^(−2) + (−0.2500 − 0.4330i)*z.^(−3)
i.e. f(z) on the left hand side. Also, using .^ instead of ^ is necessary to make progress.
From the previous answer that I posted, you can plot this in the same way. The only difference is that, since z.^(-1) goes infinite for z = 0, you have to pick a grid that does not include the point (0,0) such as
xx = -6.005:.01:60.05;
yy = -6.005:.01:6.005;
[x y] =meshgrid(xx,yy);
z = x+i*y;
Of course the closer you get to the origin with a mesh point, the larger the result is. But if you plot log(abs(z)) rather than abs(z) this is not really a problem.
0 个评论
更多回答(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!