Set figure properties 'String'

5 visualizaciones (últimos 30 días)
Lawren Lin
Lawren Lin el 24 de Mayo de 2017
Respondida: Walter Roberson el 24 de Mayo de 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?

Respuesta aceptada

Walter Roberson
Walter Roberson el 24 de Mayo de 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.

Más respuestas (0)

Categorías

Más información sobre Characters and Strings en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by