Borrar filtros
Borrar filtros

Plotting Multivariable function poltting

71 visualizaciones (últimos 30 días)
khagendra adhikari
khagendra adhikari el 3 de Feb. de 2019
Respondida: MORAM el 20 de Oct. de 2023
How can plot f(x,y)= xy/(x^2+y^2) if (x,y) (0,0) and 0 if (x,y)=(0,0)

Respuesta aceptada

Ege Keskin
Ege Keskin el 3 de Feb. de 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

Más respuestas (2)

Dirk Herschberger
Dirk Herschberger el 17 de Sept. de 2020
[X,Y] = meshgrid(1:.2:10);
Z =(X*Y) / (X^2 + Y^2);
surf(X,Y,Z)

MORAM
MORAM el 20 de Oct. de 2023
[X,Y] = meshgrid(1:.2:10);
Z =(X*Y) / (X^2 + Y^2);
surf(X,Y,Z)

Categorías

Más información sobre Surface and Mesh Plots en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by