user552231
user552231

Reputation: 1135

set the word 'remove' in text box in gui in matlab

I programmed a GUI in Matlab (using guide). I have a text box in which I try to set strings. whenever I tried to put the string 'remove' using.

set(handles.sentence,'string','remove');

I get blank. if I put:

set(handles.sentence,'string','REMOVE');

it presents 'REMOVE' in the text box.

thank you.

Upvotes: 2

Views: 44

Answers (1)

Luis Mendo
Luis Mendo

Reputation: 112659

This is documented:

The words default, factory, and remove are reserved words that will not appear in text when quoted as a normal characters. To display any of these words individually, precede them with a backslash, such as '\default' or '\remove'.

Upvotes: 5

Related Questions