Display Cursor Location
バージョン 1.0.0.0 (2.36 KB) 作成者:
Rodney Thomson
Display cursor coordinates within a plot axes window
Display the current cursor coordinates within the bounds of a plot axes.
Assigned as a WindowButtonMotionFcn callback function. Only updates when mouse is moved over plot contents.
To use (See screenshot):
t = linspace(-5,5);
y = sinc(t);
f = figure;
plot(t, y, 'r');
set(f, 'WindowButtonMotionFcn', @(obj, event)cursorLocation(obj, event, 'BottomLeft', ' X: %.3f\n Y: %.3f', 'r'))
For more information:
http://iheartmatlab.blogspot.com/2008/07/display-cursor-coordinates.html
引用
Rodney Thomson (2025). Display Cursor Location (https://jp.mathworks.com/matlabcentral/fileexchange/20892-display-cursor-location), MATLAB Central File Exchange. に取得済み.
MATLAB リリースの互換性
作成:
R14SP3
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linuxカテゴリ
Help Center および MATLAB Answers で Data Exploration についてさらに検索
タグ
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!| バージョン | 公開済み | リリース ノート | |
|---|---|---|---|
| 1.0.0.0 | Link to blog entry |
