Delta Cursors

バージョン 1.2.0.0 (2.41 KB) 作成者: Seth
This function allows you to have delta cursors using Matlab's built in data cursors.
ダウンロード: 531
更新 2013/2/14

ライセンスの表示

These cursors are simple to use. Just add 'figureC.m' to your path and then call 'figureC' in place of 'figure' in your script. All the rest is taken care of.

Details: A custom figure function ('figureC.m') is used to create a figure which embeds data in the 'UserData' field of the figure. The UserData contains information for a reference cursor. All other cursors are updated with a delta relative to the reference cursor. When the figure is created, the datacursormode 'UpdateFcn' is over-ridden with a custom update function which performs all the delta functionality.

Note: There is a small glitch which sometimes occurs. The reference cursor will have a dX, dY and dZ of 0 instead of the string 'Ref Cursor'. This does not affect functionality. It's just a slight annoyance. The delta cursors will still show the correct values. This is a problem with Matlab not passing in the datacursor obj when it calls the datacursor 'UpdateFcn'.

引用

Seth (2024). Delta Cursors (https://www.mathworks.com/matlabcentral/fileexchange/40317-delta-cursors), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2008b
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersString Parsing についてさらに検索

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
1.2.0.0

Resubmitted as .m file instead of .zip

1.1.0.0

n/a

1.0.0.0