Info
Questa domanda è chiusa. Riaprila per modificarla o per rispondere.
change if to switch
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
% --- 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
Risposte (0)
Questa domanda è chiusa.
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!