MATLAB slider step behavior
问题 I have a created a slider widget using GUIDE in MATLAB 2012a. I want it to control an axis that displays images inwhich the slider steps through a sequence of them. I have set the slider's properties for Min, Max, and SliderStep in one part of the m-file. sliderMin = 1; sliderMax = size(result); % this is variable sliderStep = [1, 1]; % major and minor steps of 1 set(handles.slider, 'Min', sliderMin); set(handles.slider, 'Max', sliderMax); set(handles.slider, 'SliderStep', sliderStep); set