The button of setting
조회 수: 2 (최근 30일)
이전 댓글 표시
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!!
댓글 수: 0
답변 (1개)
Azzi Abdelmalek
2012년 8월 8일
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
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!