Text input with default

Version (3.21 KB) by Karl
Like Matlab's "input" function, but with a default that you can select by simply hitting Enter.
Updated 22 Jun 2009

View License

Allows you to provide a default answer to a question, so the user can select it by simply hitting Enter. Supports strings, numbers, and cell arrays as defaults.

Cite As

Karl (2024). Text input with default (https://www.mathworks.com/matlabcentral/fileexchange/24520-text-input-with-default), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2007b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Desktop in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes