MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE manuali

Manuali dei proprietari e guide per l'utente per Software MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE.
We fornisce 4 manuali pdf MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE per scaricare gratuitamente in base al tipo di documento: Manuale Utente, Specifiche, Guida Utente


Indice

How to Contact MathWorks

2

Revision History

3

Contents

5

Create UIs with GUIDE

6

What Is GUIDE?

6

GUIDE Preferences and Options

6

Lay Out a UI Using GUIDE

7

Create UIs Programmatically

11

Lay Out a Programmatic UI

11

Code a Programmatic UI

12

Manage Callback Execution

13

Packaging GUIs as Apps

15

Introduction to Creating UIs

17

About UIs in MATLAB Software

19

What Is a UI?

20

What Is a UI?

21

How Does a UI Work?

22

Ways to Build MATLAB UIs

23

How to Create a UI with GUIDE

25

Set the Window Size in GUIDE

29

Layout the Simple GUIDE UI

30

Click OK

33

simple_gui

40

% Set the current data value

42

mesh(handles.current_data);

46

Files Generated by GUIDE

48

Files Generated by GUIDE

49

Callbacks” on page 8-5

51

A Simple Programmatic UI

53

3 A Simple Programmatic UI

54

GUIDE: Getting Started

70

GUIDE Tools Summary

71

4 What Is GUIDE?

72

GUIDE Preferences

74

Prompt to Save on Activate

75

All Other Preferences

76

GUIDE Preferences

77

GUIDE Options

80

Resize Behavior

81

Command-Line Accessibility

81

GUIDE Options

83

Generate FIG-File Only

84

1.4142

85

GUIDE Templates

88

Template Descriptions

89

GUIDE Templates

91

GUIDE Components

99

6 Lay Out a UI Using GUIDE

100

GUIDE Components

101

Place Components

103

User Interface Controls

109

Use the Table Property Editor

143

Set Data Properties

149

ActiveX Component

151

Resize GUIDE UI Components

153

Locate and Move Components

160

Drag Components

161

Locate and Move Components

163

Align GUIDE UI Components

165

Align GUIDE UI Components

167

Grid and Rulers

171

Create Menus for GUIDE UIs

177

Create Menus for GUIDE UIs

179

Context Menus

187

Create Toolbars for GUIDE UIs

194

Predefined Tools

199

Custom Tools

199

Standard Background Color

207

UI Design References

209

Save and Run a GUIDE UI

211

Save a GUIDE UI

212

Save a GUIDE UI

213

7 Save and Run a GUIDE UI

214

Rename GUIDE UIs and Files

215

Programming a GUIDE UI

217

8 Programming a GUIDE UI

218

GUIDE Callback Syntax

221

Opening Function

223

Output Function

225

How to Use the Example Code

227

Radio Button

229

Button Group

237

Examples of GUIDE UIs

245

Modal Dialog Box in GUIDE

248

Modal Dialog Box in GUIDE

249

9 Examples of GUIDE UIs

250

UI That Uses Persistent Data

253

MAT-file Validation

255

Overall UI Characteristics

263

Plot Push Button Behavior

273

Create Two Context Menus

289

Related Examples

291

Implement the List Box

293

Read Workspace Variables

299

About the Example

303

Run the Program

305

Design the 3-D Globe UI

315

Inserted

323

The Timer Implementation

327

10 Lay Out a Programmatic UI

334

Programmatic Components

338

Programmatic Components

339

Lay Out a UI Programmatically

363

Align Components

383

Align Components Horizontally

385

Use the uitoolbar Function

411

Commonly Used Properties

411

Default System Font

417

Initialize a Programmatic UI

420

11 Code a Programmatic UI

422

Callback Syntax

427

Share Data Among Callbacks

430

More About

438

Interrupt Callback Execution

440

Interrupt Callback Execution

441

13 Manage Callback Execution

442

Examples of UIs Created

445

Programmatically

445

View the Example Code

447

Initialize the UI

451

Define the Callbacks

452

Updating the Plot

455

See Also

455

Use the UI

466

Program List Master

470

Identify Component Handles

473

Code File Organization

479

UI Programming Techniques

480

• “Find Apps” on page 15-2

483

Find Apps

484

View App File List

485

Install or Reinstall App

487

Uninstall App

488

Apps Overview

492

Why Create an App?

493

16 Packaging GUIs as Apps

494

Package Apps

495

Modify Apps

497

Share Apps

498

Dependency Analysis

500

Indice

Version 7

1

How to Contact The MathWorks:

2

Contents

3

Getting Started with

9

1 Getting Started with GUIDE

10

Starting GUIDE

11

The Layout Editor

13

GUIDE Templates

15

GUI FIG-Files and M-Files

17

Programming the GUI M-file

19

Creating a GUI

23

2 Creating a GUI

24

Laying Out the GUI

25

Add the Components

29

Align the Components

31

Name Property

33

Programming the GUI

39

% hObject handle to figure

43

Surf push button callback:

45

Mesh push button callback:

45

Saving and Running a GUI

49

Laying Out GUIs and

51

Setting Properties

51

Using GUIDE Templates

52

Blank GUI

53

GUI with Uicontrols

54

GUI with Axes and Menu

55

Modal Question Dialog

56

Yes and No push buttons:

58

Using the Layout Editor

59

Layout Area

60

Push Button

61

Toggle Button

61

Radio Button

61

Check Box

61

Edit Text

61

Button Group

63

ActiveX Component

63

Adding an ActiveX Control

66

Selecting Components

67

Moving Components

67

Saving the Layout

71

Renaming GUI Files

71

Displaying the GUI

72

Layout Editor Preferences

72

Layout Editor Context Menus

73

Component Context Menus

74

Selecting GUI Options

75

Resize Behavior

76

Command-Line Accessibility

77

Access Options

78

Generate FIG-File and M-File

79

Naming Callback Subfunctions

80

Callback Function Syntax

80

Generate FIG-File Only

83

Align Options

85

Grids and Rulers

86

Creating Guide Lines

87

Front-to-Back Positioning

88

Inspect Properties from the

90

Some Commonly Used Properties

92

Callback

93

Setting List Box Properties

94

Setting Slider Properties

95

Callback Properties

101

Changing a Tag

103

Changing Callback Properties

103

Creating a Menu

108

Specifying Menu Properties

108

Adding Items to a Menu

109

Laying Out Three Menus

111

Menu Callbacks

113

Select All uimenu item

114

Defining Context Menus

115

New Menu Item

116

UIContextMenu property

118

1 Surf push button

120

2 Contour push button

120

3 Mesh push button

120

Programming GUIs

121

4 Programming GUIs

122

Accessing GUI Data

123

Output Function

125

Input and Output Arguments

127

Radio Buttons

129

List Boxes

131

Button Groups

133

ActiveX Controls

137

Layout Editor and select

139

M-file Editor

141

Application Data

149

Specifying a Fixed-Width Font

151

Using a Specific Font Name

151

Types of Callbacks

153

Controlling Interruptibility

155

The Event Queue

155

BusyAction

157

Dismissing a Modal Figure

159

GUI Applications

167

5 GUI Applications

168

Design of the GUI

169

GUI Option Settings

171

Plot Button Code Listing

173

List Box Directory Reader

175

Loading the List Box

177

Enabling Multiple Selection

183

Running the GUI

187

'Value');

189

'String',NewVal)

189

Plotting the Results Data

193

The GUI Help Button

195

Closing the GUI

195

An Address Book Reader

197

Calling the GUI

199

Check_And_Load Code Listing

201

Storing and Retrieving Data

203

Contact Name Callback

203

Code Listing

205

Save or Save As

207

The Create New Menu

209

Indice

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

Indice

Computation

1

Visualization

1

Programming

1

How to Contact The MathWorks:

2

Contents

3

MATLAB GUIs

4

GUIDE Layout Tools

5

Getting Started with

9

1 Getting Started with GUIDE

10

Show names in

11

Getting Started Example

13

View an Animated Demo

15

1. Set the GUI Figure Size

15

2. Add the Components

17

3. Align the Objects

18

Push Buttons and Static Text

19

Popup Menu Items

20

Tag and Callback Properties

21

5. Activate the GUI

24

The Application M-File

24

Example – Testing the GUI

27

1. Add the File Menu

28

2. Set the Label and Tag

29

3. Add the Items

30

File Menu Callback

32

The Print Item Callback

33

The Close Item Callback

33

User Interface Controls

34

Properties to Set

34

Programming the Callback

34

Toggle Buttons

35

Radio Buttons

35

Checkboxes

37

Edit Text

37

Designing a Slider

40

Triggering Callback Execution

40

Single or Multiple Selection

41

Selection Type

41

List Box Examples

42

Programming the Popup Menu

43

Axes Callbacks

44

Plotting to Axes in GUIs

44

GUIs with Multiple Axes

44

2 MATLAB GUIs

48

Introduction

48

Creating GUIs with GUIDE

49

The Implementation of a GUI

49

Updating Callbacks

52

Resize Behavior

56

Property Settings

56

Command-Line Accessibility

58

HandleVisibility – Callback

59

HandleVisibility – Off

59

HandleVisibility – On

59

IntegerHandle

59

The Generated M-File

61

Naming Callback Subfunctions

61

Callback Function Syntax

61

Using Save As

67

Getting Everything Right

67

Avoiding Problems

68

<automatic> to

69

Closebutton_Callback

69

GUI Layout Tools

72

Activating the Figure

75

Figure Context Menus

77

GUI Component Context Menus

78

Align Options

81

Distribute Options

82

Creating Guide Lines

83

Layout menu

85

Inspect Properties from the

87

Creating a Menu

90

Specifying Menu Properties

90

Adding Items to the Menu

91

Laying Out Three Menus

92

Defining Context Menus

95

Creating the Parent Menu

96

Label and Tag properties

97

UIContextMenu property

97

Saving the GUI

99

What a FIG-File Contains

99

Handle Remapping

99

3 GUIDE Layout Tools

100

Opening FIG-Files

100

Programming GUIs

101

4 Programming GUIs

102

GUI Programming Topics

102

Callback property

105

Opening the FIG-File

107

Positioning the GUI Onscreen

108

structure for

109

Save the updated structure

111

% store the changes

112

Saving the Handles Structure

112

Using the Default System Font

115

Specifying a Fixed-Width Font

116

Using a Specific Font Name

116

System-Dependent Units

117

Types of Callbacks

118

Which Callback Executes

119

Adding A Callback

119

Using Modal Figure Windows

123

Application Examples

125

5 Application Examples

126

GUI with Multiple Axes

127

Identifying the Axes

129

Application Option Settings

130

Getting User Input

131

% Get user input from GUI

131

Calculating Data

131

Targeting Specific Axes

131

Dialog Requirements

133

Launching the Dialog

134

Wait for User Input

134

Making the Dialog Modal

135

Launch the Dialog

137

Executing a Callback

139

Close button’s callback

141

List Box Directory Reader

142

Implementing the GUI

143

Loading the List Box

145

Opening Unknown File Types

147

Reading Workspace Variables

149

Enabling Multiple Selection

150

Changing the Controller Gains

153

Running the Simulation

153

Plotting the Results

154

Removing Results

154

Application Options Settings

154

Slider Callback

155

Plotting the Results Data

159

The GUI Help Button

161

An Address Book Reader

164

Validating the MAT-file

167

Check_And_Load Code Listing

167

The Contact Name Callback

169

The Contact Phone # Callback

171

Paging Forward or Backward

173

Code Listing

173

The Create New Menu

175

Changing the Width

176

Changing the Height

176





Più prodotti e manuali per Software MATLAB

Modelli Tipo di Documento
POLYSPACE RELEASE NOTES Manuale Utente   Getting Started with MATLAB 7 [en] , 240 pagine
SIGNAL PROCESSING BLOCKSET 7 Guida Utente   MATLAB SIGNAL PROCESSING BLOCKSET 7 User`s guide [en] , 738 pagine
BUILDER EX 1 Guida Utente   MATLAB BUILDER EX 1 User`s guide, 182 pagine
APPLICATION DEPLOYMENT - WEB EXAMPLE GUIDE Guida Utente   MATLAB APPLICATION DEPLOYMENT - WEB EXAMPLE GUIDE User`s guide [en] , 354 pagine
EMBEDDED IDE LINK 4 - FOR USE WITH TEXAS INSTRUMENTS CODE COMPOSER STUDIO Guida Utente   MATLAB EMBEDDED IDE LINK 4 - FOR USE WITH TEXAS INSTRUMENTS CODE COMPOSER STUDIO User`s guide, 575 pagine
APPLICATION DEPLOYMENT - WEB EXAMPLE GUIDE Guida Utente   MATLAB APPLICATION DEPLOYMENT - WEB EXAMPLE GUIDE User`s guide, 274 pagine
MAPPING TOOLBOX RELEASE NOTES Guida Utente   MATLAB MAPPING TOOLBOX RELEASE NOTES User`s guide, 160 pagine
IMAGE ACQUISITION TOOLBOX - RELEASE NOTES Guida Utente   MATLAB IMAGE ACQUISITION TOOLBOX - RELEASE NOTES User`s guide, 172 pagine
SIMULINK 3D ANIMATION - S Guida Utente   MATLAB SIMULINK 3D ANIMATION - S User`s guide, 490 pagine
MATLAB REPORT GENERATOR - RELEASE NOTES Guida Utente   MATLAB MATLAB REPORT GENERATOR - RELEASE NOTES User`s guide, 986 pagine
PARALLEL COMPUTING TOOLBOX - S Guida Utente   MATLAB PARALLEL COMPUTING TOOLBOX - S User`s guide, 656 pagine
EMBEDDED IDE LINK 4 - FOR USE WITH TEXAS INSTRUMENTS CODE COMPOSER STUDIO Guida Utente   MATLAB EMBEDDED IDE LINK 4 - FOR USE WITH TEXAS INSTRUMENTS CODE COMPOSER STUDIO User`s guide, 112 pagine
DO QUALIFICATION RELEASE NOTES Manuale Utente   FS-K96 Release Notes V3.5, 15 pagine
FINANCIAL DERIVATIVES TOOLBOX Manuale Utente   Introductory Course to Matlab with Financial Case Studies, 119 pagine
SIMEVENTS RELEASE NOTES Guida Utente   MATLAB SIMEVENTS RELEASE NOTES User guide, 114 pagine
SIGNAL PROCESSING TOOLBOX 6 Manuale Utente   Signal Processing Toolbox Getting Started Guide, 60 pagine
SIMULINK VERIFICATION AND VALIDATION - S Guida Utente   MATLAB SIMULINK VERIFICATION AND VALIDATION - S User`s guide, 674 pagine
IMAGE PROCESSING TOOLBOX - RELEASE NOTES Guida Utente   MATLAB IMAGE PROCESSING TOOLBOX - RELEASE NOTES User`s guide, 122 pagine
SYSTEM IDENTIFICATION TOOLBOX 7 Guida Utente   MATLAB SYSTEM IDENTIFICATION TOOLBOX 7 User`s guide, 531 pagine
DESIGN HDL CODER RELEASE NOTES Guida Utente   MATLAB DESIGN HDL CODER RELEASE NOTES User guide, 410 pagine