Graphing level curves for an e^x function
Mostrar comentarios más antiguos
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 comentario
Chris Basic
el 1 de Mayo de 2020
Try surf(x,y,z) to make sure you have the axes labeled right
Respuesta aceptada
Más respuestas (1)
David Hill
el 1 de Mayo de 2020
Did you try something like:
contour(z,50);
1 comentario
Malena Vasquez
el 1 de Mayo de 2020
Categorías
Más información sobre Annotations en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



