How to set one specific point on a 3-D surface ?
2 次查看(过去 30 天)
显示 更早的评论
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?
0 个评论
回答(1 个)
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')
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Surface and Mesh Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
