uibutton: GUI pushbuttons with better labels
by Douglas Schwarz
13 Apr 2006
(Updated 05 Nov 2010)
Creates pushbutton uicontrol labeled with TeX or LaTeX strings.
|
Watch this File
|
| File Information |
| Description |
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.
|
| Acknowledgements |
This file inspired
Euler Angle, Dcm, Quaternion, And Euler Vector Conversion/Teaching Gui, 3 D Puma Robot Demo, and Dynamical System Viewer.
|
| MATLAB release |
MATLAB 7.8 (R2009a)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (13) |
| 26 Jul 2012 |
Gregory Vernon
|
|
|
| 05 Nov 2010 |
Douglas Schwarz
|
|
|
| 04 Nov 2010 |
Oliver
|
|
|
| 04 Nov 2010 |
Oliver
|
|
|
| 28 Apr 2009 |
Emery
|
|
|
| 15 Apr 2008 |
Matthew Adler
|
|
|
| 15 Apr 2008 |
Micke M
|
|
|
| 30 Mar 2008 |
ding lu
|
|
|
| 19 Feb 2008 |
Agnieszka Herman
|
|
|
| 19 Sep 2006 |
Trevor Fichera
|
|
|
| 04 Jun 2006 |
ebrahim sepidbar
|
|
|
| 16 Apr 2006 |
Jiro Doke
|
|
|
| 15 Apr 2006 |
Peter Nave
|
|
|
| Updates |
| 17 Apr 2006 |
Added ability to pass in figure or uipanel handle as first argument. Changed documentation. |
| 20 Apr 2006 |
Now make background pixels transparent thereby making button look more like a normal button. |
| 07 Mar 2010 |
Added ability to set the text rotation angle. |
| 10 Mar 2010 |
Fixed bug introduced in previous update. |
| 05 Nov 2010 |
Workaround for bug in getframe in case parent figure is on a second screen. |
|
Contact us