MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Manuel d'utilisateur Page 13

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 330
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 12
xiii
Creating GUIs Programmatically
11
Functions for Creating GUIs
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-2
Function Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-3
Predefined Dialog Boxes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-3
Creating Components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-3
ActiveX Controls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-4
Using Application-Defined Data . . . . . . . . . . . . . . . . . . . . . . . . 11-4
Interactive User Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-4
Working with Preferences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-4
Utilities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-5
12
Examples of GUIs Created Programmatically
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
GUI with Axes, Menu, and Toolbar . . . . . . . . . . . . . . . . . . . . . . . . 9
The Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Techniques Used in the Example . . . . . . . . . . . . . . . . . . . . . . . . . 11
View the Completed GUI M-Files . . . . . . . . . . . . . . . . . . . . . . . . . 11
Creating the Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Creating the GUI and Its Components . . . . . . . . . . . . . . . . . . . . . 12
Initializing the GUI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Defining the Callbacks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Helper Function: Plotting the Plot Types . . . . . . . . . . . . . . . . . . . 21
Color Palette . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
The Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Vue de la page 12
1 2 ... 8 9 10 11 12 13 14 15 16 17 18 ... 329 330

Commentaires sur ces manuels

Pas de commentaire