Error when plotting a graph
显示 更早的评论
How can I plot these five functions? I already tried everything.

the d) I tried:
[x,y] = meshgrid(-2:.2:2, -2:.2:2); z = 8*log(x*y); surf(x,y,z);
but the graph is wrong.
Thank You =]
回答(1 个)
Azzi Abdelmalek
2013-5-25
[x,y] = meshgrid(0:.2:2, 0:.2:2);
z = 8*log(x.*y);
surf(x,y,z);
1 个评论
Azzi Abdelmalek
2013-5-25
编辑:Azzi Abdelmalek
2013-5-25
If you want to use a complex logarithme, use
[x,y] = meshgrid(-2:.2:2, -2:.2:2);
z = abs(8*log(x.*y));
surf(x,y,z);
类别
在 帮助中心 和 File Exchange 中查找有关 Surface and Mesh Plots 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!