필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Setting of the button

조회 수: 1 (최근 30일)
Pan
Pan 2012년 8월 10일
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!!
this is my search's code
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
that is my code
function hp2_callback(hObject,eventdata)
set(hp2 ,'callback','f2');
%close(hfig);
end
I don't how to combine??
If you know ,please tell me,thank!

답변 (1개)

Walter Roberson
Walter Roberson 2012년 8월 12일
How is this different from http://www.mathworks.co.uk/matlabcentral/answers/45577-the-button-of-setting ? You re-opened this Question but you did not edit it or provide any information about the difference between this Question and the other one.

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by