
v
Contents
Introduction to Creating UIs
About UIs in MATLAB Software
1
What Is a UI? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-2
How Does a UI Work? . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-4
Ways to Build MATLAB UIs . . . . . . . . . . . . . . . . . . . . . . . 1-5
How to Create a UI with GUIDE
2
Create a Simple UI Using GUIDE . . . . . . . . . . . . . . . . . . 2-2
Open a New UI in the GUIDE Layout Editor . . . . . . . . 2-2
Set the Window Size in GUIDE . . . . . . . . . . . . . . . . . . 2-5
Layout the Simple GUIDE UI . . . . . . . . . . . . . . . . . . . . 2-6
Code the Behavior of the Simple GUIDE UI . . . . . . . . 2-16
Open and Run the Simple GUIDE UI . . . . . . . . . . . . . 2-22
Files Generated by GUIDE . . . . . . . . . . . . . . . . . . . . . . . 2-24
Code Files and FIG-Files . . . . . . . . . . . . . . . . . . . . . . . 2-24
UI Code File Structure . . . . . . . . . . . . . . . . . . . . . . . . 2-24
Adding Callback Templates to an Existing UI Code File 2-25
About GUIDE-Generated Callbacks . . . . . . . . . . . . . . 2-26
Commenti su questo manuale