3-D-plot doesn't look like on Wolfram Alpha

I'm confused. By typing:
[x,y] = meshgrid(-2:0.2:2)
z = sin(x)./(y.^2+1)
surf(x,y,z)
I receive a totally different plot.

 采纳的回答

It looks the same to me as long as you enter
plot sin(x)/(y^2+1) from x=-2 to 2 and y=-2 to 2
into Wolfram Alpha

2 个评论

weird, that
z = sin(x)./(y^2+1)
makes the difference...
See this documentation page for more information about the difference between the / and ./ operators.

请先登录,再进行评论。

更多回答(0 个)

类别

在 帮助中心 和 File Exchange 中查找有关 Descriptive Statistics and Visualization 的更多信息

产品

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by