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.

 Respuesta aceptada

Alan Stevens
Alan Stevens el 8 de Dic. de 2020

0 votos

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 comentarios

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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Centro de ayuda y File Exchange.

Productos

Etiquetas

Preguntada:

el 7 de Dic. de 2020

Comentada:

el 15 de Dic. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by