Plotting Multivariable function poltting

103 ビュー (過去 30 日間)
khagendra adhikari
khagendra adhikari 2019 年 2 月 3 日
回答済み: MORAM 2023 年 10 月 20 日
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 Center および File Exchange2-D and 3-D Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by