Where is surf() result?

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 件のコメント

Matt J
Matt J 2021 年 3 月 14 日
It should work. Maybe type
>> shg
to bring it to the front of the desktop?
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 件)

カテゴリ

ヘルプ センター および File ExchangeSurfaces, Volumes, and Polygons についてさらに検索

タグ

質問済み:

2021 年 3 月 14 日

編集済み:

2021 年 3 月 14 日

Community Treasure Hunt

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

Start Hunting!

Translated by