フィルターのクリア

How can I plot the contour of the imaginary unit of this function phiz?

8 ビュー (過去 30 日間)
Alexander Ruscitto
Alexander Ruscitto 2022 年 4 月 3 日
回答済み: Chandra 2022 年 4 月 6 日
[x,y] = meshgrid(linspace(-4,4));
y = y.*1i;
for k = 1:8
z = x + 1i.*y;
phiz = z + z.^(-1) - 1i.*(k/(2*pi)).*log(z);
figure (4);
contour(x,y,imag(phiz),'-k');
end

回答 (1 件)

Chandra
Chandra 2022 年 4 月 6 日
Hi,
Imaginary term generally indicates the axis of a graph, (2,3) can be written as 2+3i is some applications and magnitude gives the distance from origin, so if we want to see the imaginary term directly provide the real values in y axis
y = real(y);
%or we can provide magnitude
y = abs(y);
try different values to y and see the contour plot changes.
refer to contour for further information

カテゴリ

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

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by