MATLAB: How to make a slider in GUI with a variable range

gui

how to make a slider in the range 100-120 in GUI? or that does not start with 0? because if it does not start at 0 slider will disappear ? example : min 100 max = 120
thanks so much —best regards >devia

Best Answer

Sure. Just use GUIDE (see Doug Hull's blog on it) and place a slider on the figure. Then double click it and set the min and max property. Make sure you set the value to be between min and max or it will not display the slider when you run it.