How to plot complex function of two variables?

31 次查看(过去 30 天)
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.

采纳的回答

KSSV
KSSV 2021-6-8
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))

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

产品


版本

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by