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.

답변 (1개)

Andreas Goser
Andreas Goser 2012년 5월 15일

0 개 추천

You need the commands PLOT, HOLD und GINPUT.

댓글 수: 2

Lydia H
Lydia H 2012년 7월 30일
I have the same question. but GINPUT can't identify the curves.
Walter Roberson
Walter Roberson 2012년 7월 30일
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

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Interpolation에 대해 자세히 알아보기

제품

태그

질문:

2012년 5월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by