MYGINPUT

Simple modification of GINPUT with custum cursor pointer
4,8K Descargas
Actualizado 14 sep 2020

Ver licencia

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.

Citar como

Frederic Moisy (2024). MYGINPUT (https://www.mathworks.com/matlabcentral/fileexchange/12770-myginput), MATLAB Central File Exchange. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R2006a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux
Categorías
Más información sobre Data Exploration en Help Center y MATLAB Answers.

Community Treasure Hunt

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

Start Hunting!
Versión Publicado Notas de la versión
1.0.0.1

License update

1.0.0.0

example did not work properly