View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Delta Cursors

Be the first to rate this file! 6 Downloads (last 30 days) File Size: 2.41 KB File ID: #40317 Version: 1.2
image thumbnail

Delta Cursors


Seth (view profile)


14 Feb 2013 (Updated )

This function allows you to have delta cursors using Matlab's built in data cursors.

| Watch this File

File Information

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'.

Required Products MATLAB
MATLAB release MATLAB 7.7 (R2008b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
14 Feb 2013 1.1


14 Feb 2013 1.2

Resubmitted as .m file instead of .zip

Contact us