TXTMENU - Text-Based Menu for the Command Window

version (14.5 KB) by Sky Sartorius
Like the built-in MENU function, but all in the command prompt so fingers never leave the keyboard.


Updated 15 Feb 2017

View License

TXTMENU is similar to the built-in MATLAB function MENU but has the following features to make using menus faster and more useful:
1. The menu is text-based in the command window so time isn't wasted generating a GUI menu and the user does not have to waste time with the mouse to click an option.
2. There can be a default choice, which is selected when there is no input (i.e. hitting return key without first typing a menu choice).
3. The menu is customizable both in appearance (content, layout, and color) and the type of choices available (e.g., a mixture of string and numeric options is possible).

Cite As

Sky Sartorius (2022). TXTMENU - Text-Based Menu for the Command Window (https://www.mathworks.com/matlabcentral/fileexchange/28285-txtmenu-text-based-menu-for-the-command-window), MATLAB Central File Exchange. Retrieved .

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

Community Treasure Hunt

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

Start Hunting!