select equity by touch
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Luca Re
am 9 Okt. 2023
Kommentiert: Luca Re
am 10 Okt. 2023
this is plot matrix
I want to select line and to know which column is selected
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1506764/image.png)
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 10 Okt. 2023
I suggest you consider using datatips; https://www.mathworks.com/help/matlab/creating_plots/create-custom-data-tips.html
Not all varieties of plotting support the kinds of datatips listed there. For some kinds of plots, see instead datacursormode
3 Kommentare
Walter Roberson
am 10 Okt. 2023
I think you might be looking at https://www.mathworks.com/help/matlab/ref/matlab.graphics.datatip.datatiptemplate-properties.html which has the example
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.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!