Use ginput in a datatip

I'd like create an extra toolbar button on the standard plot menu creating a datatip that displays the distance to its previous location when clicked (not to the origin of the plot). Or maybe just a modifier key together with a button press that changes an existing datatip to show its distance to where it was when clicked+modifier. Such functionality seems to be available for sursors in a Simulink scope window, but I'd like to use it for plain MATLAB plots. I strongly suspect this basic facility is available but can't find it?

回答 (1 件)

Matt J
Matt J 2026 年 4 月 6 日 11:58

0 投票

There is imdistline, but it requires the Image Processing Toolbox.

カテゴリ

ヘルプ センター および File ExchangeMigrate GUIDE Apps についてさらに検索

製品

リリース

R2023b

質問済み:

2026 年 4 月 6 日 11:30

回答済み:

2026 年 4 月 6 日 11:58

Community Treasure Hunt

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

Start Hunting!

Translated by