Plotting Multivariable function poltting
41 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
khagendra adhikari
le 3 Fév 2019
Réponse apportée : MORAM
le 20 Oct 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 commentaires
Réponse acceptée
Ege Keskin
le 3 Fév 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 commentaires
Plus de réponses (2)
Dirk Herschberger
le 17 Sep 2020
[X,Y] = meshgrid(1:.2:10);
Z =(X*Y) / (X^2 + Y^2);
surf(X,Y,Z)
0 commentaires
Voir également
Catégories
En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!