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

1 回表示 (過去 30 日間)
Niklas Kurz
Niklas Kurz 2020 年 12 月 7 日
コメント済み: Steven Lord 2020 年 12 月 15 日
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.

採用された回答

Alan Stevens
Alan Stevens 2020 年 12 月 8 日
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 件のコメント
Niklas Kurz
Niklas Kurz 2020 年 12 月 14 日
weird, that
z = sin(x)./(y^2+1)
makes the difference...
Steven Lord
Steven Lord 2020 年 12 月 15 日
See this documentation page for more information about the difference between the / and ./ operators.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by