select equity by touch

2 次查看(过去 30 天)
Luca Re
Luca Re 2023-10-9
评论: Luca Re 2023-10-10
this is plot matrix
I want to select line and to know which column is selected

采纳的回答

Walter Roberson
Walter Roberson 2023-10-10
Not all varieties of plotting support the kinds of datatips listed there. For some kinds of plots, see instead datacursormode
  3 个评论
Walter Roberson
Walter Roberson 2023-10-10
p = plot(1:10);
dtt = p.DataTipTemplate
Here plot() is a MATLAB function call that is being asked to work on the data [1,2,3,4,5,6,7,8,9,10] . plot() of a vector returns the handle to a Chart Line object, https://www.mathworks.com/help/matlab/ref/matlab.graphics.chart.primitive.line-properties.html which is an object-oriented object so the variable p would be the reference to the graphics object.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Graphics Object Programming 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by