필터 지우기
필터 지우기

Info

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

change if to switch

조회 수: 1 (최근 30일)
Naomi Penelope
Naomi Penelope 2020년 4월 29일
마감: Rik 2020년 4월 29일
% --- Executes during object creation, after setting all properties.
function slider1_CreateFcn(hObject, ~, ~)
% hObject handle to slider1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
%sets the min range
set(hObject, 'Min', 1);
%sets the min range
set(hObject, 'Max', 99);
%sets the start value
set(hObject, 'Value', 1);
% Hint: slider controls usually have a light gray background.
if isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor',[.9 .9 .9]);
end
  댓글 수: 2
Cris LaPierre
Cris LaPierre 2020년 4월 29일
You've asked the same question twice. Which one would you like an answer to?
Naomi Penelope
Naomi Penelope 2020년 4월 29일
the other question

답변 (0개)

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by