How to move slider-bar with a step-size of two?

11 views (last 30 days)
John Doe
John Doe on 17 May 2020
Commented: Rik on 18 May 2020
Hey there everyone. I have a slider which I want to increase like 1:2:10 by dragging the bar with mouse. How can I accomplish that?
Thanks in advance!
  1 Comment
Rik on 18 May 2020
I don't know if you have already come across this page, but especially since GUIDE is going to be removed from Matlab, here are some useful tips:

Sign in to comment.

Accepted Answer

Rik on 17 May 2020
Edited: Rik on 17 May 2020
Round the Value property to the nearest value in your array in the callback function.
allowed_vals=1:2:10;%better: store this in the guidata struct
Rik on 18 May 2020
You need to blur the original image, so you will have to store both the original and the processed version.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!