Plotting Multivariable function poltting
71 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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)
0 comentarios
Respuesta aceptada
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
0 comentarios
Más respuestas (2)
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)
0 comentarios
MORAM
el 20 de Oct. de 2023
[X,Y] = meshgrid(1:.2:10);
Z =(X*Y) / (X^2 + Y^2);
surf(X,Y,Z)
0 comentarios
Ver también
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!