How to auto run the slider using a button?
3 views (last 30 days)
Show older comments
I have enclosed the example code. Here I am using the slider to see the slice images. But I wanted to add a button in app designer so that the Slider can move automatically with the images. Kindly suggest your ideas to implement this functionality in GUI?
0 Comments
Answers (1)
Jan
on 8 Jun 2022
The shown code creates a figure programmatically. Using the AppDesigner would be useful to insert an element in a uifigure , which was created by AppDesigner.
Simply insert the button by a uicintrol('Style', 'ToggleButton') command as the other controls in this code. It is not clear to me, what "so that the Slider can move automatically with the images" means, but this is implemented in the callback of the button.
See Also
Categories
Find more on Migrate GUIDE Apps in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!