imgbutton
Versión 1.0.0.0 (1,55 KB) por
Daniel
IMGBUTTON returns a uicontrol that toggles two images to indicate state.
HB = IMGBUTTON(H,CDATA) returns a handle to a uicontrol in parent H where
the two-element cell array CDATA contains image data to indicate the off
and on states of the button.
IMGBUTTON(...,'PROP1',VAL1,'PROP2',VAL2,...) sets the other properties of
the uicontrol.
For some reason, the buttons do not seem to work in uibuttongroups as
expected.
Only works for checkbox, radiobutton and togglebutton styles.
Example:
cdata = {imread('off.png'),imread('on.png')};
hbtn = imgbutton(gcf,cdata,'position',[0 0 50 50]);
Citar como
Daniel (2026). imgbutton (https://es.mathworks.com/matlabcentral/fileexchange/42555-imgbutton), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Se creó con
R2009a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS LinuxEtiquetas
Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
| Versión | Publicado | Notas de la versión | |
|---|---|---|---|
| 1.0.0.0 |
