Set figure properties 'String'
5 views (last 30 days)
Show older comments
Lawren Lin
on 24 May 2017
Answered: Walter Roberson
on 24 May 2017
I've been looking at the matlab documentation for set() work on figure properties, but I can't find things with 'String' properties. If the code writes like:
set(..., 'String', ...)
What does the property 'String' mean?
0 Comments
Accepted Answer
Walter Roberson
on 24 May 2017
For uicontrol of style 'text', the String property is what is displayed in the uicontrol text area. For style 'edit', the String property is the text that is initially placed in the uicontrol edit area. For style 'radio' or 'push' or 'checkbox, the String property is the label to display. For 'list' or 'popup', the String property is the entries to put into the menus. In short, for uicontrol, the String property is something to display to the user.
For text() graphic objects, the String property is the text to be plotted.
0 Comments
More Answers (0)
See Also
Categories
Find more on Characters and Strings in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!