Where is surf() result?

2 次查看(过去 30 天)
Valeri Aronov
Valeri Aronov 2021-3-14
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 个评论
Valeri Aronov
Valeri Aronov 2021-3-14
编辑:Valeri Aronov 2021-3-14
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 2021-3-14
No, the semicolon should have made absolutely no difference ...

请先登录,再进行评论。

回答(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