![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1345019/image.png)
How can i create movable handles in Matlab graph to find data at the intersection of the handle and the graph?
7 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I have a data and after plotting the data I want to develope a program to find out the result value in the graph by providing a vertical movable line which the user can drag thoughout the graph to fing value at desireable frequency. I already know about the datatip feature but this question is based on the future developments of the program. ![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1344984/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1344984/image.png)
0 commentaires
Réponses (1)
Joe Vinciguerra
le 4 Avr 2023
X = 0:0.1:4*pi();
Y = sin(X);
stackedplot(X',Y', "DisplayLabels", "sin(x)");
The vertical line follows the cursor.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1345019/image.png)
Voir également
Catégories
En savoir plus sur Directed Graphs dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!