how to create an anonymous function?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
f(x,y)=x exp(-2y^2-x^2)
plot the surface of the function over R=[-2,2] x [-2,2]
1 commentaire
Réponses (2)
Azzi Abdelmalek
le 24 Juin 2015
x=[-2,2]
y=[-2,2]
[X,Y]=meshgrid(x,y)
Z=X.*exp(-2*Y.^2-X.^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!