Graphing level curves for an e^x function
Ältere Kommentare anzeigen
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 Kommentar
Chris Basic
am 1 Mai 2020
Try surf(x,y,z) to make sure you have the axes labeled right
Akzeptierte Antwort
Weitere Antworten (1)
David Hill
am 1 Mai 2020
Did you try something like:
contour(z,50);
Kategorien
Mehr zu Annotations finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



