3-D-plot doesn't look like on Wolfram Alpha
조회 수: 1 (최근 30일)
이전 댓글 표시
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.
댓글 수: 0
채택된 답변
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
Steven Lord
2020년 12월 15일
See this documentation page for more information about the difference between the / and ./ operators.
추가 답변 (0개)
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!