Error when plotting a graph
Afficher commentaires plus anciens
How can I plot these five functions? I already tried everything.

the d) I tried:
[x,y] = meshgrid(-2:.2:2, -2:.2:2); z = 8*log(x*y); surf(x,y,z);
but the graph is wrong.
Thank You =]
Réponses (1)
Azzi Abdelmalek
le 25 Mai 2013
[x,y] = meshgrid(0:.2:2, 0:.2:2);
z = 8*log(x.*y);
surf(x,y,z);
1 commentaire
Azzi Abdelmalek
le 25 Mai 2013
Modifié(e) : Azzi Abdelmalek
le 25 Mai 2013
If you want to use a complex logarithme, use
[x,y] = meshgrid(-2:.2:2, -2:.2:2);
z = abs(8*log(x.*y));
surf(x,y,z);
Catégories
En savoir plus sur Surface and Mesh Plots dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!