How to plot complex function of two variables?

How to plot complex function, in MATLAB like surface plot.
x and y are variable. Should I separately plot for positive sign and negative sign.

 Risposta accettata

x = linspace(0,1) ;
y = linspace(0,1) ;
[X,Y] = meshgrid(x,y) ;
Z = 1i/2*sqrt(X./Y) ;
surf(X,Y,abs(Z))
hold on
surf(X,Y,-abs(Z))

1 Commento

Do you know the type of this graph?
Like nature(soliton, parabolic, or any other)

Accedi per commentare.

Più risposte (0)

Prodotti

Release

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by