Plotting Multivariable function poltting

조회 수: 41 (최근 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 CenterFile Exchange에서 2-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