
4 What Is GUIDE?
4-6
-
Creating Graphic
1
-
508-647-7000 (Phone)
2
-
508-647-7001 (Fax)
2
-
The MathWorks, Inc
2
-
3 Apple Hill Drive
2
-
Natick, MA 01760-2098
2
-
Revision History
3
-
Create GUIs with GUIDE
7
-
Save and Run a GUIDE GUI
9
-
Examples of GUIDE GUIs
11
-
Create GUIs Programmatically
13
-
Code a Programmatic GUI
14
-
Manage Callback Execution
15
-
Examples
17
-
Contents
18
-
Introduction to Creating GUIs
19
-
About GUIs in MATLAB
21
-
Software
21
-
What Is a GUI?
22
-
How Does a GUI Work?
24
-
'c =
24
-
'print')
24
-
Where Do I Start?
26
-
Ways to Build MATLAB GUIs
28
-
Ways to Build MATLAB
29
-
1 About GUIs in MATLAB
30
-
How to Create a G UI with
31
-
Introduction to GUIDE
32
-
Getting Help in GUIDE
34
-
Laying Out a GUIDE GUI
37
-
Programming a GUIDE GUI
38
-
Simple GUIDE GUI Components
39
-
Add Components t
45
-
Align the Components
46
-
Add Text to the Components
48
-
String.TheString
51
-
Select Data
52
-
Strin g. In the String
52
-
Save the GUI Layout
55
-
.m, contains MATLAB functions
55
-
Program the Simple GUIDE GUI
58
-
The curs
59
-
% uiwait(handles.f igure1);
60
-
Program the Pop-Up Menu
61
-
% handles
62
-
Program the Push Buttons
63
-
UsetheCompletedSimpleGUIDEGUI
66
-
How to Create a Simple
69
-
GUI Programmatically
69
-
CodetheSimpleProgrammaticGUI
81
-
Open and Run the GUI
88
-
What Is GUIDE?
93
-
GUIDE: Getting Started
94
-
GUIDE Tools Summar y
95
-
4 What Is GUIDE?
96
-
GUIDE Tools Summary
97
-
GUIDE Preferences and
99
-
GUIDE Preferences
100
-
GUIDE in the
101
-
Prompt to Save on Export
102
-
All Other Preferences
104
-
.fig ,intheLayout
105
-
GUIDE Preferences and Options
106
-
GUI Options
107
-
ResizeFcn
108
-
Command-Line Accessibility
109
-
Ha ndle Visibility and
110
-
OpeningFcn, which can
111
-
Generate FIG-File Only
112
-
Callbac k property of
114
-
Lay Out a GUIDE GUI
115
-
Design a GUI
116
-
Design a G UI
117
-
Star t GUIDE
118
-
Start GUIDE
119
-
Select a GUI Template
120
-
Template Descriptions
121
-
6 Lay Out a GUIDE GUI
122
-
GUI with Uicontrols
123
-
Modal Question Dialog
127
-
WindowStyle property
128
-
Set the GUI Size
129
-
Click and drag
129
-
Add Components to the GUI
133
-
Highlight
149
-
Commonly Used Properties
153
-
Radio Button
157
-
Check Box
159
-
String property to
166
-
Position
171
-
My Panel
173
-
\remove yields remove
173
-
Title property to the desired
174
-
My Button Group
174
-
NextPlot property has its
180
-
Creating a Table
181
-
ColumnEditable
185
-
RowName, Show
188
-
Add ActiveX Controls
191
-
Locate and Move Components
197
-
Align Components
203
-
Align Options
205
-
BackgroundColor
207
-
Extent,andPosition
207
-
Creating Guide Lines
211
-
Set Tab Order
212
-
Create Menus in a GUIDE GUI
215
-
Untitled,appears
223
-
Edit drop-down menu
225
-
Copy is a cascading menu
226
-
Menu button from the toolbar
229
-
UIC ontextMenu property to
234
-
Tag property axes1
234
-
Create Toolbars
236
-
Predefined and Custom Tools
241
-
Move Tools
243
-
Remove Tools
243
-
Edit a Tool’s Properties
243
-
EditingToolIcons
245
-
Use the I con Editor
247
-
View the Object Hierarchy
250
-
Default System Font
251
-
FixedWidthFontName property
252
-
Units of pixels does not
253
-
Save and Run a GUIDE
255
-
NameaGUIandItsFiles
256
-
File and GUI Names
257
-
Rename GUIs and GUI Files
257
-
Save a GUIDE GUI
258
-
Save a New GUI
259
-
7 Save and Run a GUIDE GUI
260
-
Tag properties do not
261
-
UserData)
263
-
Run a GUIDE GUI
264
-
From the Command Line
265
-
From Any MATLAB Code File
265
-
Programming a GUIDE
269
-
8 Programming a GUIDE GUI
270
-
Files Generated by GUIDE
275
-
Adding Callback
277
-
Tag,GUIDErenamesallits
278
-
Tag property
280
-
GUIDE Callback Templates
283
-
Callback Function Signatures
285
-
GUIDE-generated callbacks
287
-
Initialize a GUIDE GUI
293
-
Function Naming and Template
297
-
Input Arguments
297
-
Output Arguments
297
-
Toggle Button
299
-
Edit Text
301
-
CellEditCallback
303
-
Cell Sele ctionCallback
303
-
Pop-Up Menu
305
-
Programming a Button Group
311
-
Callback
313
-
Creating Subplots
315
-
ActiveX Control
317
-
Mwsamp_activex1 in your
319
-
5 View the Ac
321
-
Menu Item
327
-
Updating a Menu Item Check
329
-
Managing and Sharing
331
-
Application Data in GUIDE
331
-
Nested Functions
334
-
UserData Property
335
-
Application Data
335
-
GUI Data
337
-
GUI Data in GUIDE
338
-
Introduction
340
-
Sharing Data with UserData
341
-
Sharing Data with GUI Data
347
-
Data-Sharing Techniques
351
-
User Input
352
-
Applying the Text Change
359
-
Closing the Main GUI
359
-
Icon Manipulation Tools
360
-
Icon Editor Implementation
363
-
• guid e_co lorpalette.m
364
-
• guid e_to olPalatte.m
364
-
% Update handles structure
367
-
10 Examples of GUIDE GUIs
376
-
Calculate Data
383
-
Plot Data
383
-
Designthe3-DGlobeGUI
391
-
Make a Movie of the Animation
397
-
Create the Graphic Objects
399
-
Visible property
401
-
Further Graphic
403
-
Explorations
403
-
About the tablestat Example
405
-
Design the tablestat GUI
409
-
Tag properties (which are
410
-
Compute the Data Statistics
415
-
View and Run the L
429
-
Load the List Box
431
-
Read Workspace Variables
437
-
A GUI to Set Simulink
441
-
Model Parameters (GUIDE)
441
-
Kf)intheGainblock
443
-
Slider Callback
445
-
Remove Results from List Box
449
-
Plot Button Callback Listing
451
-
GUI Option Settings
457
-
Validate the MAT-file
459
-
- ThenameoftheMAT-file
460
-
- The Address es structure
460
-
The Open Menu Callback
461
-
Open_Callback Code Listing
461
-
Contact Name Callback
463
-
Save the Addresses Structure
467
-
Save the MAT-File
467
-
The Address Book
469
-
Resize Function
469
-
Close-Confirmation GUIs Work
477
-
About the Timer GUI Example
479
-
How the GUI Imple
483
-
Lay Out a Programmatic
489
-
Design a Programmatic GUI
490
-
CreateandRunaProgrammaticGUI
492
-
Run the GUI
493
-
11 Lay Out a Programmatic GUI
494
-
TypesofGUIComponents
497
-
Push Button
513
-
Arrow button
517
-
(minor_step)
517
-
(major_step)
517
-
Color or
531
-
Sketch a Position Vector
537
-
UseAlignDistributeTools
545
-
HorizontalAlignment
546
-
Change the Tab Or
561
-
Add Menu Bar Menus
563
-
Menu Bar Menu
567
-
Position property is
574
-
Toolbars
577
-
Modify the Standard Toolbar
581
-
Compatibility
582
-
Standard Background Color
583
-
About Some Units Settings
585
-
Code a Programmatic G UI
587
-
12 Code a Programmatic GUI
588
-
Initialize a Programmatic GUI
589
-
MaketheFigureInvisible
591
-
Write Code for Callbacks
593
-
WriteCodeforCallbacks
595
-
Use Function Handle Callbacks
599
-
List Box
609
-
Resize property to on and
614
-
Program Axes
617
-
Program Toolbar Tools
623
-
Toggle Tool
625
-
Application-Defined Data
629
-
Create Application Data
635
-
Create and Update GUI Data
637
-
UserData property to share
639
-
Share Data with UserData
643
-
Components
644
-
Share Data with GUI Data
649
-
Manage Ca llback Executio n
654
-
Order of Callback Execution
655
-
- ButtonDownFc n
656
-
- KeyPressFcn
656
-
- KeyReleaseFc n
656
-
Click a Wait Button
661
-
Click a Plot Button
662
-
Examples of GUIs Created
665
-
Programmatically
665
-
The Main Figure
672
-
The Axes
673
-
The Pop-Up Menu
674
-
The Update Push Button
674
-
TheFileMenuandItsMenuItems
675
-
The Toolbar and Its Tools
676
-
Initialize the GUI
677
-
Define the Callbacks
678
-
Open Menu Item Callback
679
-
Print Menu Item Callback
680
-
About the tableplot Example
683
-
Callback {@plot_callback,3}
686
-
The Cell Selection Callback
690
-
The Plot Check Box c allback
692
-
Col_1, C ol_2 ,
695
-
YLim property is
696
-
AGUIThatManagesListData
697
-
The Components
698
-
- An “edit panel” containing
699
-
UseListMaster
701
-
Import Data into List Master
703
-
Export Data from List Master
704
-
Save the GUI
705
-
Program List Master
706
-
A GUI That Manages List Data
707
-
List Master Setup Functions
708
-
List Master Menu Callbacks
709
-
List Master List Callbacks
711
-
List Master Utility Functions
712
-
Color Palette
715
-
Use the Color Palette
717
-
Techniques Used
719
-
View and Ru
719
-
Code File Organization
721
-
GUI Programming Techniques
722
-
Share Data Between Two GUIs
724
-
Icon Editor
727
-
Icon Editor GUI Components
728
-
Subfunction Summary
732
-
Code File Organi
734
-
Pass Input Arguments to a GUI
736
-
Make a GUI Modal
740
-
Simple Examples (GUIDE)
746
-
“About the S impl
747
-
Application Examples (GUIDE)
748
-
A Examples
750
-
GUI Layout (Programmatic)
751
-
UserData property 9-5 13-5
755
-
NextPlot
758
-
UserData property
759
Comentarios a estos manuales