I want to plot a complex function f(z) in 3D

77 ビュー (過去 30 日間)
Achyuth S.S
Achyuth S.S 2022 年 8 月 21 日
回答済み: Star Strider 2022 年 8 月 21 日
A complex function f (z) = Conjugate(z) / z
How do we plot this in MATLAB?

採用された回答

Star Strider
Star Strider 2022 年 8 月 21 日
I’m not certain what you want.
Try this —
t = linspace(0, 10);
f = @(z) conj(z)./z;
z = exp(1j*2*pi*t/max(t));
figure
plot3(real(f(z)), imag(f(z)), t)
xlabel('Re')
ylabel('Im')
zlabel('t')
title('f(z)')
grid on
.

その他の回答 (1 件)

Paul
Paul 2022 年 8 月 21 日
f(z) can be defined by:
f = @(z) conj(z)./z;
As for the plot, that depends on the kind of plot that's desired. Here's a plot of Re(f) over a region of the complex plane.
[R,I] = meshgrid(-5:.1:5,-5:.1:5);
F = real(f(R + 1j*I));
surf(R,I,F);

カテゴリ

Help Center および File ExchangeLine Plots についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by