MATLAB Answers

How can I create the slider in my data range and how can my slider auto scroll until my data ends in app designer?

8 views (last 30 days)
Özge
Özge on 25 May 2020
Commented: Özge on 8 Jun 2020
I have a function I know the map numbers and I want the slider to change as each map number changes. Map counts vary according to years, some years 13 maps, some years 25 maps. How can I make the slider occur according to my changing map count in the APP DESIGNER? I also want this slider value to change constantly from map 1 to map 13. Thank you in advance for your help.
I would like to point out that while the map count is 13, I want the slider to be 0 to 13, and if the map count is 25, I want the slider to be 0 to 25.

  0 Comments

Sign in to comment.

Answers (1)

Geoff Hayes
Geoff Hayes on 25 May 2020
Özge - I think that all you need to do is to change the slider limits so that you can change the mininmum value (0) and the maximum (13, 25, etc.).
As for the auto scroll, you could use a for loop or timer to change the slider value. When that value changes, do you expect an action to occur?

  11 Comments

Show 8 older comments
Özge
Özge on 6 Jun 2020
In fact, copyobj is troubled, for example my north and south axes are reversed because of copobj. I couldn't fix it. I am trying to draw a coastline in it, but borders are drawn upside down due to copyobj.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!