MATLAB Answers

Plotting Multivariable function poltting

154 views (last 30 days)
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

Sign in to comment.

Accepted Answer

Ege Keskin
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

Sign in to comment.

More Answers (0)

Sign in to answer this question.