Many
Manuals
search
Kategorie
Marki
Strona główna
MATLAB
Oprogramowanie
SIMULINK 7 - GRAPHICAL USER INTERFACE
Podręcznik Użytkownika
MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Podręcznik Użytkownika Strona 587
Pobierz
Podziel się
Dzielenie się
Dodaj do moich podręczników
Drukuj
Strona
/
759
Spis treści
BOOKMARKI
Oceniono
.
/ 5. Na podstawie
oceny klientów
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
12
Code
a
Programmatic
G UI
•
“Organize
a
Programmatic
GUI
File”
on
page
12-2
•
“Initialize
a
Programmatic
GUI”
on
page
12-3
•
“Write
Code
for
Callbacks”
on
page
12-7
•
“Examples:
P rogram
GUI
Components”
on
page
12-20
1
2
...
582
583
584
585
586
587
588
589
590
591
592
...
758
759
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
Komentarze do niniejszej Instrukcji
Brak uwag
Publish
Powiązane produkty i podręczniki dla Oprogramowanie MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE
Oprogramowanie MATLAB CONTROL SYSTEM TOOLBOX 9 Dokumentacja
(591 strony)
Oprogramowanie MATLAB REAL-TIME WORKSHOP 7 - TARGET LANGUAGE COMPILER Podręcznik Użytkownika
(130 strony)
Oprogramowanie MATLAB XPC TARGET RELEASE NOTES Podręcznik Użytkownika
(531 strony)
Oprogramowanie MATLAB CURVE FITTING TOOLBOX - RELEASE NOTES Podręcznik Użytkownika
(216 strony)
Oprogramowanie MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Dokumentacja
(180 strony)
Oprogramowanie MATLAB POLYSPACE RELEASE NOTES Instrukcja Użytkownika
(240 strony)
Oprogramowanie MATLAB SIGNAL PROCESSING BLOCKSET 7 Podręcznik Użytkownika
(738 strony)
Oprogramowanie MATLAB BUILDER EX 1 Podręcznik Użytkownika
(182 strony)
Oprogramowanie MATLAB APPLICATION DEPLOYMENT - WEB EXAMPLE GUIDE Podręcznik Użytkownika
(354 strony)
Oprogramowanie MATLAB EMBEDDED IDE LINK 4 - FOR USE WITH TEXAS INSTRUMENTS CODE COMPOSER STUDIO Podręcznik Użytkownika
(575 strony)
Drukuj dokument
Drukuj stronę 587
Komentarze do niniejszej Instrukcji