Where is surf() result?

조회 수: 1 (최근 30일)
Valeri Aronov
Valeri Aronov 2021년 3월 14일
편집: 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