How to plot complex function of two variables?
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
priya anjali
el 8 de Jun. de 2021
Comentada: priya anjali
el 8 de Jun. de 2021
How to plot complex function,
in MATLAB like surface plot.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/645325/image.png)
x and y are variable. Should I separately plot for positive sign and negative sign.
0 comentarios
Respuesta aceptada
KSSV
el 8 de Jun. de 2021
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))
Más respuestas (0)
Ver también
Categorías
Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!