Plotting Multivariable function poltting
103 ビュー (過去 30 日間)
古いコメントを表示
How can plot f(x,y)= xy/(x^2+y^2) if (x,y) ≠ (0,0) and 0 if (x,y)=(0,0)
0 件のコメント
採用された回答
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
0 件のコメント
その他の回答 (2 件)
Dirk Herschberger
2020 年 9 月 17 日
[X,Y] = meshgrid(1:.2:10);
Z =(X*Y) / (X^2 + Y^2);
surf(X,Y,Z)
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!