Plotting Multivariable function poltting
71 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
How can plot f(x,y)= xy/(x^2+y^2) if (x,y) ≠ (0,0) and 0 if (x,y)=(0,0)
0 Commenti
Risposta accettata
Ege Keskin
il 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 Commenti
Più risposte (2)
Dirk Herschberger
il 17 Set 2020
[X,Y] = meshgrid(1:.2:10);
Z =(X*Y) / (X^2 + Y^2);
surf(X,Y,Z)
0 Commenti
Vedere anche
Categorie
Scopri di più su Surface and Mesh Plots in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!