Where is surf() result?

2 visualizaciones (últimos 30 días)
Valeri Aronov
Valeri Aronov el 14 de Mzo. de 2021
Editada: Valeri Aronov el 14 de Mzo. de 2021
Can't see the plot even in the documentation example:
[X,Y] = meshgrid(-2:.2:2);
Z = X .* exp(-X.^2 - Y.^2);
Then, create a surface plot.
surf(X,Y,Z)
  3 comentarios
Valeri Aronov
Valeri Aronov el 14 de Mzo. de 2021
Editada: Valeri Aronov el 14 de Mzo. de 2021
Oops. I can see it now after adding ; to the end of the the line with surf command ;-)
Thanks, Matt. Your suggestion works as well.
Matt J
Matt J el 14 de Mzo. de 2021
No, the semicolon should have made absolutely no difference ...

Iniciar sesión para comentar.

Respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by