adding extra information in datacursormode text box
显示 更早的评论
Hello,
I have a subplot with hundreds of (x,y)-points displayed and I want to be able to click at a point and see some textual identification information besides the x and y values. Each point has a unique information.
The straight forward way would be to store the information in an array of same size as the data array, but what is the easiest way to access this array with the datacursormode? The datacursormode returns the x and y values of each point, but it is a little bit inconvient to use those for looking up the identification text for each point, because some points may have same values in different subplots etc.
采纳的回答
更多回答(1 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Cell Arrays 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!