MATLAB Creating Graphical User Interfaces

(ff) #1
guidata(hObject,handles);
end

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.

GUIDE Example: Share Data Between Two Apps


Here is a prebuilt GUIDE app that uses application data and the guidata function to
share data between two dialog boxes. When you enter text in the second dialog box and
click OK, the button label changes in the first dialog box.

11 Manage Application-Defined Data

Free download pdf