MATLAB Examples

GUIDE Example: Share Slider Data Using guidata

Here is a prebuilt GUIDE app that uses the guidata function to share data between a slider and a text field. When you move the slider, the number displayed in the text field changes to show the new slider position.

Click the button displayed here to open the example. Run the app by clicking the green Run Figure button at the top of the GUIDE window.