I want to plot a complex function f(z) in 3D
36 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Achyuth S.S
le 21 Août 2022
Réponse apportée : Star Strider
le 21 Août 2022
A complex function f (z) = Conjugate(z) / z
How do we plot this in MATLAB?
0 commentaires
Réponse acceptée
Star Strider
le 21 Août 2022
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 commentaires
Plus de réponses (1)
Paul
le 21 Août 2022
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 commentaires
Voir également
Catégories
En savoir plus sur Labels and Styling dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

