addDrawPolyToolbar
Version 1.0.0 (21.7 KB) by
Vasilis Bellos
Adds a polygon region of interest (ROI) draw button with masking functionality to the axes toolbar
Run addDrawPolyToolbar/addDrawPolyToolbar(axes_handle) to add a polygon ROI drawing button to the current/given axes (alternatively, run addDrawPolyToolbar([],{'roi','test'}) to create a test figure)
Press the button to interactively draw a polygon ROI
Press spacebar/enter to enable or disable the ROI masking of line objects
Moving/resizing the ROI automatically updates the masking
Press shift+s to save the current mask structure and the vertices coordinates to the workspace
Additional options included inside the function
Cite As
Vasilis Bellos (2026). addDrawPolyToolbar (https://www.mathworks.com/matlabcentral/fileexchange/119518-adddrawpolytoolbar), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2022a
Compatible with R2018b to R2022a
Platform Compatibility
Windows macOS LinuxTags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0 |
