image thumbnail

drag Line with callback

version (5.01 KB) by chen xinfeng
[set & get& drag] the line in figure, and get its [draggin-callback] as your wish.


Updated 12 Jan 2016

View License

You can [set & get& drag] the line(“dragLine”) position. When dragged, it can run your <own callback function_handle> by set the obj Interface.
[dragLine and dragRangle ] have almost the same properties and operation skill, but have 4 dragLine.
The "zip" file have a "demo.m" may be helpful.
All written by 'classdef' technology.
Chen Xinfeng(陈昕枫,华中科技大学)

Cite As

chen xinfeng (2021). drag Line with callback (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2014b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Inspired by: Graphical data selection tool

Community Treasure Hunt

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

Start Hunting!