フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

How to control the LED flashing and extinguish it where in a loop! I hope that i can stop it with another pushbutton callback

1 回表示 (過去 30 日間)
tianya shang
tianya shang 2012 年 10 月 22 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
function pushbutton1_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
set(handles.activex4,'value',0);
for i=1:9999
if mod(i,2)==1
set(handles.activex3,'value',1);
pause(0.5);
else
set(handles.activex3,'value',0);
pause(0.5);
end
end

回答 (1 件)

Walter Roberson
Walter Roberson 2012 年 10 月 22 日
if get(handles.activex4, 'Value') ~= 0
break
end

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by