Matlab: Print text in input field

Posted by Adam Doyle on Stack Overflow See other posts from Stack Overflow or by Adam Doyle
Published on 2010-04-08T23:31:38Z Indexed on 2010/04/08 23:43 UTC
Read the original article Hit count: 383

Filed under:
|
|

Using Matlab,

I have this code:

value = input('>> Enter a value: ');

and basically, I want a "default" value to the right of the colon

(sortof like this)

>> Enter a value: 12

where "12" is editable such that the user could [backspace] [backspace] and change the value to, say, "20" or something.

Is there any (easy) way to do this?

Thanks!

© Stack Overflow or respective owner

Related posts about matlab

Related posts about default-value