The Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: slider control
Replies: 5   Last Post: Aug 10, 2000 4:42 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Valentin M Abramzon

Posts: 6
Registered: 12/7/04
slider control
Posted: Aug 8, 2000 5:33 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply


Hi everybody,

I have this problem with a slider control. Suppose I want to create a
slider with
min = 1, max = 2, and step of 1 so that it has two positions: 1 and 2. I'm
using the command

SliderHandle = uicontrol( 'Style', 'slider', 'min', 1, 'max', 2,...
'SliderStep', [ 1 1 ] );

and matlab is not very happy about it:
??? Error using ==> uicontrol
Values must be increasing and non-NaN

This is understandable, because SliderStep is supposed to contain
increasing numbers between 0 and 1, but it does not make me much happier,
because I desperately need this slider with these parameters. Is there
anything I can do?

Thank you,

Valentin





Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2017. All Rights Reserved.