GINPUT FOR UIAXES

Version 1.0.0 (2.29 KB) by Toey
GINPUTUIAX is similar to Matlab's original GINPUT, except that it works with UIFIGURE & UIAXES
231 Downloads
Updated 2 Jul 2020

View License

%GINPUTUIAX Graphical input from mouse with custum cursor pointer.
% [X,Y] = ginputuiax(huiax,N) gets N points from the uiaxes, huiax and returns
% the X- and Y-coordinates in length N vectors X and Y.
% GINPUTUIAX is similar to Matlab's original GINPUT, except
% that it works with UIFIGURE & UIAXES
% Example:
% ax=uiaxes; plot(ax,rand(1,100))
% [x,y] = ginputuiax(ax,2)
%
% Adapted from GINPUTC by Jiro Doke
% Wanwara Thuptimdang
% Date: 1July2020

Cite As

Toey (2024). GINPUT FOR UIAXES (https://www.mathworks.com/matlabcentral/fileexchange/77605-ginput-for-uiaxes), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2020a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired by: Custom GINPUT

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0