How to change values of variable in both increasing and decreasing manner in GUI ?
2 views (last 30 days)
Hello all, As we use slider for changing values of variable continuously in GUI , but slider changes values in one direction only (say 0 to 10), Is it possible to change values in other direction (-10 to 0) also ? because I have an object at origin and I want to move that in +x and -x direction with using one slider . Is that any other way to do that ? Please give me some suggestions . Thank you
Joseph Cheng on 14 Jan 2016
is this not just setting the max and min properties of the slider to a min value of -10 and max value of 10? example:
hfig = figure(1);
hslide = uicontrol('style','slider','units','normalized','position',[.2 .6 .6 .05],'callback',@dispslideval)