Ginput with snap to grid
MOUSE_POINTS Input nodes from a grid.
Mouse_Points allows to input points using a variation of ginput Matlab function. The points will snap to the grid. The function returns the [n X Y] matrix (n = number of non repeated nodes, X = x coordinate, Y = y coordinate). The function is mouse friendly.
Left Click : add a point
Scroll : zoom in/out
Scroll Wheel click : pan
Double Scroll Wheel click : reset view to default view
Right click : set new default view
Enter : return [n X Y] matrix
Cite As
Franklin Fabián Lucero Luna (2026). Ginput with snap to grid (https://in.mathworks.com/matlabcentral/fileexchange/62851-ginput-with-snap-to-grid), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Graphics > Labels and Styling > Axes Appearance > Limits, Ticks, and Grids > Grid Lines, Tick Values, and Labels >
Tags
Acknowledgements
Inspired by: Mouse-friendly FIGURE
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 | Name changed |
