How to insert a Data Cursor on a specif location from command ?
33 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Gourou
am 22 Aug. 2012
Kommentiert: Adam Danz
am 1 Okt. 2021
Hello,
I have done some plots and I need to insert a Data Cursor to "highlight" the maximum of a curve.
Of course I could do it from the plot itself, but it would be better to do it automatically from the .m script.
Do you know how to d it ?
Thanks a lot, Bastien
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (2)
Adam Danz
am 29 Okt. 2020
Demo:
fig = figure();
ax1 = subplot(1,2,1);
h1 = plot(magic(5));
datacursormode on
datatip(h1(2), 2, 5);
subplot(1,2,2)
h2 = plot(rand(10), 'sb');
datatip(h2(3),'DataIndex',5);
2 Kommentare
Gopinath Karuppannan
am 1 Okt. 2021
Is it possible to have multiple data cursor points in the same plot through programmatically?
Siehe auch
Kategorien
Mehr zu Graphics Performance finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
