How to plot a function with complex variables?
20 ビュー (過去 30 日間)
古いコメントを表示
Hello guys, how do I plot a function with complex variables? For instance, I want to plot a function shown in attached file for |z|<1.
Thanks!
0 件のコメント
採用された回答
Star Strider
2018 年 6 月 27 日
I am not certain from your description what you want to plot.
Try this:
ang = 0:0.1:2*pi;
z = exp(1i*ang);
f = @(z) 1./z;
figure
plot(real(f(z)), imag(f(z)))
axis equal
figure
plot(ang, real(z))
hold on
plot(ang, imag(z))
hold off
grid
The first figure plots the imaginary component as a function of the real component. The second plots both as a function of ‘ang’.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Annotations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!