Probing a plot based on colormap information
显示 更早的评论
How can I probe a plot with colormap data?
As you see, in this case, it only shows the xyz coordinates which is not really useful. I want to be able to see the colormap value (between 0 and 1).
Any ideas? I am using the trisurf function.

采纳的回答
更多回答(1 个)
KSSV
2022-3-10
I don't think you would be able to see the values like that. But you can see what value it has using:
F = scatteredInterpolant(x,y,z,c) ;
ci = F(xi,yi,zi) ; % where xi, yi, zi is the picked point
5 个评论
Pelajar UM
2022-3-10
KSSV
2022-3-10
Yes you can. REad about this:
Pelajar UM
2022-3-10
Choose figure object
f = figure;
ax = gca;
d = datacursormode(f)
d2 = datacursormode(ax)
Pelajar UM
2022-3-10
类别
在 帮助中心 和 File Exchange 中查找有关 Color and Styling 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



