identification of curve in a graph

i want to draw many curves (each curve has its own function)on the same graph and then pick one of them by mouse and identify it (identify the function it was built with). thank you.

Respuestas (1)

Andreas Goser
Andreas Goser el 15 de Mayo de 2012

0 votos

You need the commands PLOT, HOLD und GINPUT.

2 comentarios

Lydia H
Lydia H el 30 de Jul. de 2012
I have the same question. but GINPUT can't identify the curves.
Walter Roberson
Walter Roberson el 30 de Jul. de 2012
You can take the coordinates returned by ginput() and find the distance to the closest point on any of the curves; that will tell you which curve it is.
You could also consider using datacursormode with a custom callback function

Iniciar sesión para comentar.

Categorías

Más información sobre Data Exploration en Centro de ayuda y File Exchange.

Productos

Etiquetas

Preguntada:

el 15 de Mayo de 2012

Community Treasure Hunt

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

Start Hunting!

Translated by