How to mark certain points in my surface or pcolor plot?

5 次查看(过去 30 天)
I had the following plot which I need to mark points with specific values in Z=1:
pcolor(xx,yy,Z) and surf(xx,yy,Z).
But when I use the command :
shading interp
hold on
xx = get(lambda1,'xxdata') ;
yy = get(lambda1,'yydata') ;
Z = get(lambda1,'Zdata') ;
ind = Z==1;
plot3(xx(ind),yy(ind),1,'yp')
text(xx(ind),yy(ind),'Z = 1','fontweight','bold','color','b')
contour(xx,yy,Z,[1 1],'magenta','linewidth',4)
hold off
It doesn't work in marking the points which Z=1. It's there anyone can help me with that problem?
  4 个评论
Jun Xiao
Jun Xiao 2019-11-3
I don't know. The error occurs after I add the command which attempt to mark points of the plot after the surface/pcolor command. And matlab has no document of handle.handle/get.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Surface and Mesh Plots 的更多信息

产品


版本

R2015a

Community Treasure Hunt

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

Start Hunting!

Translated by