MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Manuale Utente Pagina 85

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 500
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 84
GUIDE Options
5-13
Callbacks for UIs without Code
Even when there is no code file associated with a UI FIG-file, you can still provide
callbacks for UI components to make them perform actions when used. In the Property
Inspector, you can type callbacks in the form of strings, built-in functions, or MATLAB
code file names; when your program runs, it will execute them if possible. If the callback
is a file name, it can include arguments to that function. For example, setting the
Callback property of a push button to sqrt(2) causes the result of the expression to
display in the Command Window:
ans =
1.4142
Any file that a callback executes must be in the current folder or on the MATLAB path.
For more information on how callbacks work, see “Write Callbacks Using the GUIDE
Workflow” on page 8-2
Vedere la pagina 84
1 2 ... 80 81 82 83 84 85 86 87 88 89 90 ... 499 500

Commenti su questo manuale

Nessun commento