File Exchange

image thumbnail


version 1.3.2 (3.6 KB) by Duijnhouwer
GUI to select Intervals of Interest (IOI) from a vector


Updated 10 Dec 2018

View License

B=UIGETIOI (Y,...) displays vector Y.

Click button "Select" to select parts of Y using the mouse. Click "Select" again or press the Enter key to select another interval.

When done selecting, button "OK" closes the window and UIGETIOI returns vector B corresponding to Y with values (true/false) indicating selection.

Additional buttons are "Undo", "Redo", "Zoom", "Pan", which are self-explanatory, and "Cancel". "Cancel" closes the window and returns an empty array ([]).

UIGETIOI accepts various optional parameter-value pairs to control display style and memory management. See "help uigetioi" for details.

Cite As

Duijnhouwer (2019). uigetioi (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (0)



Updated image and help text


Fixed crash that occurred when mkzip is not on the path. Updated help section.


Added name,value pairs 'position' (default: [260 500 985 350]) and 'center' (default: true) to scale and position the window


Enter key now finishes a selection and starts a new one, ideal for selecting multiple regions quickly.
Renamed button "Add IOI" to "Select".


Renamed Close button to OK. Added a Cancel button that, like OK, closes the UI but returns an empty array ([]), not a logical array with elements corresponding to the input array like OK does.

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

Discover Live Editor

Create scripts with code, output, and formatted text in a single executable document.

Learn About Live Editor