Plotting Multivariable function poltting

113 次查看(过去 30 天)
How can plot f(x,y)= xy/(x^2+y^2) if (x,y) (0,0) and 0 if (x,y)=(0,0)

采纳的回答

Ege Keskin
Ege Keskin 2019-2-3
[X,Y] = meshgrid(1:.2:10);
Z =(X*Y) / (X^2 + Y^2);
surf(X,Y,Z)
You should avoid including 0 within the grid boundary since it creates a singularity.
Also read about;
https://www.mathworks.com/help/matlab/learn_matlab/plots.html

更多回答(2 个)

Dirk Herschberger
Dirk Herschberger 2020-9-17
[X,Y] = meshgrid(1:.2:10);
Z =(X*Y) / (X^2 + Y^2);
surf(X,Y,Z)

MORAM
MORAM 2023-10-20
[X,Y] = meshgrid(1:.2:10);
Z =(X*Y) / (X^2 + Y^2);
surf(X,Y,Z)

类别

Help CenterFile Exchange 中查找有关 Surface and Mesh Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by