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 Exchange에서 Surfaces, 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