Is there a way to control two subplots with one slider?
Show older comments
Can anyone demonstrate a way to update both subplots with one uicontrol slider?
In my case I have two matlab arrays with size (1024,128,20). I want to imshow 2d images of size 1024 x 128 for each of the third dimension using a slider and only one slider updating both subplots.
Thanks in advance
2 Comments
Geoff Hayes
on 1 Jun 2022
@Derrell Dsouza - did you create your GUI programmatically, using App Designer or using GUIDE? Have you created a callback for your slider? You should be able to update both subplots from within that callback. Please provide a sample of code that shows what you have attempted.
Derrell Dsouza
on 1 Jun 2022
Accepted Answer
More Answers (0)
Categories
Find more on Subplots 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!