How to display values of z-axis in a stem chart
3 次查看(过去 30 天)
显示 更早的评论
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1172343/image.jpeg)
Hi, I have a 3D stem chart as shown in the figure. I want P(x,y) values to appear above the points in the graph. How can I do that? Thanks in advance.
0 个评论
采纳的回答
Walter Roberson
2022-10-28
text() accepts vectors of x y z and either string array or cell array of string. I suggest using compose() with a double-quoted format specification to build a string array.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Stem Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!