I want to plot a complex function f(z) in 3D
조회 수: 34 (최근 30일)
이전 댓글 표시
A complex function f (z) = Conjugate(z) / z
How do we plot this in MATLAB?
댓글 수: 0
채택된 답변
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
.
댓글 수: 0
추가 답변 (1개)
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);
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Labels and Styling에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

