MATLAB: Display editable text on console

consoledid you mean?MATLABsuggested functions

How can I send a text string to the console, and allow the user to edit it before executing, like the "Did you mean" mechanism.

Best Answer

CmdWinTool('toFocus'); % Guarantee that command window has the focus
inputemu('key_normal', 'hello');
Perhaps FEX: textinject helps also.
Note: I would not use Matlab's command window for fancy editing actions, because it has a limited power only. Creating an own text interface in a figure can be more powerful.
Related Question