Graphing level curves for an e^x function
Afficher commentaires plus anciens
Hi everyone!
For a school project I'm trying to graph the function
and its level curves. Using matlab is not required but I'm trying to learn it so as to improve the presentation of my work. I've attempted to do this but for some reason the plot isn't looking as it should so I'm guessing there's a problem in my code. Any help would be appreciated.
my code:
[x,y]=meshgrid(-5:.1:5);
z=exp(x.*y);
z=surfc(z);
output:

1 commentaire
Chris Basic
le 1 Mai 2020
Try surf(x,y,z) to make sure you have the axes labeled right
Réponse acceptée
Plus de réponses (1)
David Hill
le 1 Mai 2020
Did you try something like:
contour(z,50);
1 commentaire
Malena Vasquez
le 1 Mai 2020
Catégories
En savoir plus sur Annotations dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



