Vous suivez désormais cette soumission
- Les mises à jour seront visibles dans votre flux de contenu suivi
- Selon vos préférences en matière de communication il est possible que vous receviez des e-mails
Have you ever wanted to create a pushbutton uicontrol containing a Greek letter, some other mathematical expression or even just a multi-line label? This function will do it for you. It is very easy to use as it accepts all the same arguments as uicontrol with the addition of the Interpreter property which you can set to 'tex' or 'latex' and the Rotation property to set the angle of rotation of the text. Also, you can pass in a cell array of strings for the String property to get a multi-line label. For example,
uibutton('String','Set \beta','Interpreter','tex')
Can also create something that looks like a text uicontrol.
Citation pour cette source
Douglas Schwarz (2026). uibutton: GUI pushbuttons with better labels (https://fr.mathworks.com/matlabcentral/fileexchange/10743-uibutton-gui-pushbuttons-with-better-labels), MATLAB Central File Exchange. Extrait(e) le .
Informations générales
- Version 1.3.0.0 (3,13 ko)
Compatibilité avec les versions de MATLAB
- Compatible avec toutes les versions
Plateformes compatibles
- Windows
- macOS
- Linux
| Version | Publié le | Notes de version | Action |
|---|---|---|---|
| 1.3.0.0 | Workaround for bug in getframe in case parent figure is on a second screen. |
||
| 1.2.0.0 | Fixed bug introduced in previous update. |
||
| 1.1.0.0 | Added ability to set the text rotation angle. |
||
| 1.0.0.0 | Now make background pixels transparent thereby making button look more like a normal button. |
