This demo is modeled after Doug Hull excellent demo @:
but has been revised to work in a file created with GUIDE.
The two lines can be dragged with the mouse and the positions can be passed to the command window by pressing the push button.
It also shows how to pass the GUI handles to the user defined callback functions in the same way GUIDE does.
Gero Nootz (2021). Drag Line in GUI (https://www.mathworks.com/matlabcentral/fileexchange/42284-drag-line-in-gui), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!