Borrar filtros
Borrar filtros

The button of setting

1 visualización (últimos 30 días)
Pan
Pan el 8 de Ag. de 2012
Hellow , I want to ask you another question that
The button is pushed once, then if the button want to be pushed twice must wait few time(EX:2sec).
I don't how to do ,if you know please teach me thank you!!

Respuestas (1)

Azzi Abdelmalek
Azzi Abdelmalek el 8 de Ag. de 2012
you have to program this function
function button_name(hObject,Event)
val = get(hObject,'Value');
if val ==1
% do whatever you want
set(hObject,'enable','off')
pause(2) %
set(hObject,'enable','on')
end
  1 comentario
Pan
Pan el 9 de Ag. de 2012
Editada: Walter Roberson el 9 de Ag. de 2012
Hi, this is my code
function hp2_callback(hObject,eventdata)
set(hp2 ,'callback','f2');
%close(hfig);
end
so ,you say the code ,I don't know how to use,please teach me ,thank!!

Iniciar sesión para comentar.

Categorías

Más información sobre MATLAB 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