Graphing level curves for an e^x function
古いコメントを表示
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 件のコメント
Chris Basic
2020 年 5 月 1 日
Try surf(x,y,z) to make sure you have the axes labeled right
採用された回答
その他の回答 (1 件)
カテゴリ
ヘルプ センター および File Exchange で Annotations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



