I want to plot a complex function f(z) in 3D
Ältere Kommentare anzeigen
A complex function f (z) = Conjugate(z) / z
How do we plot this in MATLAB?
Akzeptierte Antwort
Weitere Antworten (1)
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);
Kategorien
Mehr zu Labels and Styling finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

