Set figure properties 'String'

5 views (last 30 days)
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?

Accepted Answer

Walter Roberson
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.

More Answers (0)

Categories

Find more on Characters and Strings in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!