File Exchange

image thumbnail

zinput

version 1.0 (3.16 KB) by

Ginput with zoom-in, select, all-zoom out

0 Downloads

Updated

View License

ZINPUT - Graphical input from mouse with zoom

[OUT_REGS] = ZINPUT(N) gets N points or regions from the current axes and returns the X- and Y-ranges in a length Nx4 matrix OUT_REGS.
The cursor can be positioned using the mouse. Data points are entered by pressing the right mouse button (OUT_REGS(1)==OUT_REGS(2)==point_X), the region of the current axis are selected with the middle button, left button is for zooming, single cklick zooms in, click-and drag zooms to selected region (and doubble-click should zoom out - this feature is pending).
Any key on the keyboard except carriage return zooms out to the orignal axis. Carriage return/Enter, which terminates the input before N points are entered.

[OUT_REGS] = ZINPUT gathers an unlimited number of points until the return key is pressed.

Comments and Ratings (1)

Masoud

Masoud (view profile)

Zoom in and Zoom out are good but the program does not return the coordinates of the selected pixel properly.

MATLAB Release
MATLAB 6.5.1 (R13SP1)
Acknowledgements

Inspired by: zoom2cursor

Inspired: ginput2.m v3.1 (Nov 2009)

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

» Watch video