MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Bedienungsanleitung Seite 292

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 500
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 291
9 Examples of GUIDE UIs
9-46
Interactive List Box in a GUIDE UI
In this section...
“About the Example” on page 9-46
“Implement the List Box” on page 9-47
About the Example
This example shows how to create a list box to display the files in a folder. When you
double click a list item, MATLAB opens the item:
If the item is a file, MATLAB opens the file using the appropriate application.
If the item is a folder, MATLAB reads the contents of that folder into the list box.
To get and view the example code:
1
Copy the example FIG-file and code file to your current (writeable) folder and open
the FIG-file in GUIDE and the with the following commands:
copyfile(fullfile(docroot, 'techdoc','creating_guis',...
'examples','lbox2*.*')), fileattrib('lbox2*.*', '+w')
guide lbox2.fig
Seitenansicht 291
1 2 ... 287 288 289 290 291 292 293 294 295 296 297 ... 499 500

Kommentare zu diesen Handbüchern

Keine Kommentare