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 CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by