View License

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

» Watch video

Highlights from
Points and Lines Drawing Tools

5.0 | 1 rating Rate this file 7 Downloads (last 30 days) File Size: 5.63 KB File ID: #42429 Version: 1.0

Points and Lines Drawing Tools



A simple code to implement points and point-to-point lines drawing in a figure.

| Watch this File

File Information

gpoints is the function for drawing points,
gsortline is the function for drawing lines (lines are drawn by points clicking and connected by smoothing), and
DrawGUI is a demo.

- mouse left click to add a point
- mouse left click on a point and hold to
- movemouse right click on a point to remove
- keyboard input "s" to save the drawing
- keyboard input "r" to reset the drawing to previous saving
keyboard input "Delete" to delete the drawing

Required Products MATLAB
MATLAB release MATLAB 7.10 (R2010a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (3)
09 Jan 2017 Weronika Gutfeter

24 Feb 2014 Marco Chak Yan Yu

RE: Simon

You have to use DrawDUI( ) like imshow( ).
You have to put an image object as variable inside.

Comment only
28 Jan 2014 Simon

Simon (view profile)

hello. i tried to run the DrawGUI and i got the following error.
>> DrawGUI
Undefined variable or function I might refer to the function i.

Error in DrawGUI (line 41)

Comment only

Contact us