フィルターのクリア

How can I display the current pointer location in X and Y values while using GINPUT in MATLAB 7.10 (R2010a)?

2 ビュー (過去 30 日間)
Prabhakar
Prabhakar 2011 年 1 月 18 日
コメント済み: Lavanya 2022 年 9 月 27 日
While using GINPUT on an 2D axes, I would like to view the X and Y values at the cursor location in the figure window prior to selecting them with the mouse.

回答 (1 件)

Prabhakar
Prabhakar 2011 年 1 月 18 日
There is no supported function for doing this. Attached is a modified version of GINPUT, which references a third party function cursorLocation.m, found at: http://iheartmatlab.blogspot.com
This modified GINPUT will display the X and Y values at the current cursor location in the top left corner of the figure. Note that this modified function has only been tested with figures that have a single 2D axes and will produce an error if used with a blank figure.
  1 件のコメント
Lavanya
Lavanya 2022 年 9 月 27 日
Unable to find the curosrLocation.m file in the link. Can you please provide me another link for the file?

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeVisual Exploration についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by