how the slider works in matlab?

1 view (last 30 days)
preeti
preeti on 7 May 2015
Answered: Image Analyst on 7 May 2015
Can anybody tell me the working of slider practically with some small example .How to take slider step . As I hav set of image which is shown. I want that if I move slider it ashould show some images at a time while hiding others. Any help will be greatly appreciated. Thanks Preeti

Answers (2)

Stephen23
Stephen23 on 7 May 2015
Edited: Stephen23 on 7 May 2015
Basically to use a slider you will need to think about two main things when the slider is created:
  1. the slider 'min' and 'max', and optionally the step sizes
  2. the slider 'callback' function to be the function that you want to occur when the slider moves. This can be any MATLAB function, either inbuilt or one that you define yourself.
Here is a very clear example of how to use a slider to scroll some axes:

Image Analyst
Image Analyst on 7 May 2015
Maybe you'd like to take a look at this framework meant for beginners to get used to GUI programming:
Description
This GUI will help the novice user get up to speed very quickly on using GUI-based applications. Everything is laid out in a very simple Step 1, Step 2, Step 3, etc. layout. It is a very good starting point for a typical image analysis application. This application uses GUIDE to do the user interface design, and has most of the basic controls such as buttons, listboxes, checkboxes, radio buttons, scrollbars, etc. It allows the user to select a folder of images, select one or more images and display them, to select a series of options, and to individually or batch process one or more images. The user can

Categories

Find more on Migrate GUIDE Apps in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!