MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Manual de usuario Pagina 292

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 500
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 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
Vista de pagina 291
1 2 ... 287 288 289 290 291 292 293 294 295 296 297 ... 499 500

Comentarios a estos manuales

Sin comentarios