Graphing level curves for an e^x function
Show older comments
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 Comment
Chris Basic
on 1 May 2020
Try surf(x,y,z) to make sure you have the axes labeled right
Accepted Answer
More Answers (1)
David Hill
on 1 May 2020
Did you try something like:
contour(z,50);
1 Comment
Malena Vasquez
on 1 May 2020
Categories
Find more on Annotations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


