Specifications
vi Contents
A GUI to Set Simulink Model Parameters . . . . . . . . . . . . . . 5-19
Techniques Used in This Example . . . . . . . . . . . . . . . . . . . . . . 5-19
View Completed Layout and Its GUI M-File . . . . . . . . . . . . . . 5-19
How to Use the GUI (Text of GUI Help) . . . . . . . . . . . . . . . . . . 5-20
Running the GUI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-21
Programming the Slider and Edit Text Components . . . . . . . . 5-22
Running the Simulation from the GUI . . . . . . . . . . . . . . . . . . . 5-24
Removing Results from the List Box . . . . . . . . . . . . . . . . . . . . 5-26
Plotting the Results Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-27
The GUI Help Button . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-29
Closing the GUI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-29
The List Box Callback and Create Function . . . . . . . . . . . . . . 5-29
An Address Book Reader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-31
Techniques Used in This Example . . . . . . . . . . . . . . . . . . . . . . 5-31
Managing Shared Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-31
View Completed Layout and Its GUI M-File . . . . . . . . . . . . . . 5-32
Running the GUI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-32
Loading an Address Book Into the Reader . . . . . . . . . . . . . . . . 5-34
The Contact Name Callback . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-36
The Contact Phone Number Callback . . . . . . . . . . . . . . . . . . . . 5-38
Paging Through the Address Book — Prev/Next . . . . . . . . . . . 5-39
Saving Changes to the Address Book from the Menu . . . . . . . 5-41
The Create New Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-43
The Address Book Resize Function . . . . . . . . . . . . . . . . . . . . . . 5-43
Index