No BSD License  

Highlights from
MYGINPUT

5.0

5.0 | 3 ratings Rate this file 9 Downloads (last 30 days) File Size: 6.53 KB File ID: #12770

MYGINPUT

by Frederic Moisy

 

24 Oct 2006 (Updated 26 Oct 2006)

Simple modification of GINPUT with custum cursor pointer

| Watch this File

File Information
Description

MYGINPUT Graphical input from mouse with custum cursor pointer.

[X,Y] = MYGINPUT(N) gets N points from the current axes and returns the X- and Y-coordinates in length N vectors X and Y.
 
[X,Y] = MYGINPUT(N, POINTER) also specifies the cursor pointer, e.g. 'crosshair', 'arrow', 'circle' etc. See "Specifying the Figure Pointer" in Matlab's documentation to see the list of available pointers.
    
MYGINPUT is strictly equivalent to Matlab's original GINPUT, except that a second argument specifies the cursor pointer instead of the default 'fullcrosshair' pointer.
 
Example:
plot(1:2,1:2,'s');
hold on
[x,y] = myginput(1,'crosshair');
plot(x,y,'o');
hold off
 
 
MYGINPUT is copied from Matlab's GINPUT rev. 5.32.4.4.

MATLAB release MATLAB 7.2 (R2006a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (3)
07 Jul 2008 Sugu leasa

Good job!

13 Jan 2011 Catalin Eberhardt

Very useful!

05 Aug 2011 Mauro Donzelli  
Please login to add a comment or rating.
Updates
26 Oct 2006

example did not work properly

Tag Activity for this File
Tag Applied By Date/Time
data exploration Frederic Moisy 22 Oct 2008 08:45:18
ginput pointer Frederic Moisy 22 Oct 2008 08:45:18
moditication Frederic Moisy 22 Oct 2008 08:45:18
myginput Frederic Moisy 22 Oct 2008 08:45:18
graph Frederic Moisy 22 Oct 2008 08:45:18
graphics Frederic Moisy 22 Oct 2008 08:45:18
custom cursor Frederic Moisy 22 Oct 2008 08:45:18
myginput Daniella 25 Apr 2011 20:04:49
ginput pointer Patty Gehring 12 Jul 2011 12:52:06

Contact us at files@mathworks.com