Slider is still at min and not moving
古いコメントを表示
Hi, this is part of my super simple slider, but it still not working...Slider is not moving. Thanks for help!!
function slider1_Callback(hObject, eventdata, handles)
sliderMin = 1;
sliderMax = 520; % this is variable
sliderStep = [1, 1] / (sliderMax - sliderMin) % major and minor steps of 1
set(handles.slider1, 'Min', sliderMin);
set(handles.slider1, 'Max', sliderMax);
set(handles.slider1, 'SliderStep', sliderStep);
set(handles.slider1, 'Value', sliderMin); % set to beginning of sequence
time=get(handles.slider1,'Value');
set(handles.text1,'String',num2str(round(time)))
guidata(hObject, handles);
1 件のコメント
Walter Roberson
2013 年 4 月 7 日
It isn't moving from what to what?
Note that you might need to add a drawnow() to give a chance for the GUI to update.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Vehicle Scenarios についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!