Plotting Multivariable function poltting
151 views (last 30 days)
Show older comments
How can plot f(x,y)= xy/(x^2+y^2) if (x,y) ≠ (0,0) and 0 if (x,y)=(0,0)
0 Comments
Accepted Answer
Ege Keskin
on 3 Feb 2019
[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
0 Comments
More Answers (2)
Dirk Herschberger
on 17 Sep 2020
[X,Y] = meshgrid(1:.2:10);
Z =(X*Y) / (X^2 + Y^2);
surf(X,Y,Z)
0 Comments
See Also
Categories
Find more on 2-D and 3-D Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!