Borrar filtros
Borrar filtros

How insert if/elseif/else statement into callback

2 visualizaciones (últimos 30 días)
john
john el 24 de Abr. de 2013
Hi, how can I insert if/elseif/else into callback? This is my idea:
uicontrol('Style','checkbox',...
'Units','normalized',...
'Position',[0.4 0.05 0.3 0.1],...
'String','Two!',...
'Callback',
if get(handles.checkbox,'Value')==1
a=1
if get(handles.checkbox,'Value')==0
a=0;
end; );
Count of checkboxes is always different. Thank you

Respuestas (0)

Categorías

Más información sobre Interactive Control and Callbacks 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