Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

change if to switch

1 Ansicht (letzte 30 Tage)
Naomi Penelope
Naomi Penelope am 29 Apr. 2020
Geschlossen: Rik am 29 Apr. 2020
% --- 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 Kommentare
Cris LaPierre
Cris LaPierre am 29 Apr. 2020
You've asked the same question twice. Which one would you like an answer to?
Naomi Penelope
Naomi Penelope am 29 Apr. 2020
the other question

Antworten (0)

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by