How to set one specific point on a 3-D surface ?

조회 수: 1 (최근 30일)
Cengizhan Taslicay
Cengizhan Taslicay 2021년 8월 31일
답변: KSSV 2021년 8월 31일
I calculate the minimum point on my surface consisting of the X, Y and Z axes. I want to show this calculated point on the Figure as well. I can select the point with the mouse, but it is quite difficult. How can I show this point in my figure?

답변 (1개)

KSSV
KSSV 2021년 8월 31일
[X,Y,Z] = peaks(100) ;
[val,idx] = max(Z(:)) ;
surf(X,Y,Z) ;
shading interp
hold on
plot3(X(idx),Y(idx),Z(idx),'+r')

카테고리

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