Note: Supplemental materials are not guaranteed with Rental or Used book purchases.
Purchase Benefits
What is included with this book?
1 Getting Started 1
1.1 Introduction 1
1.2 Typographical Conventions 1
1.3 What’s New in MATLAB 2
1.4 What’s in Mastering MATLAB 2
2 Basic Features 4
2.1 Simple Math 4
2.2 The MATLAB Workspace 6
2.3 About Variables 7
2.4 Comments, Punctuation, and Aborting Execution 10
2.5 Complex Numbers 12
2.6 Floating-Point Arithmetic 14
2.7 Mathematical Functions 16
3 The MATLAB Desktop 22
3.1 MATLAB Windows 22
3.2 Managing the MATLAB Workspace 23
3.3 Memory Management 27
3.4 Number Display Formats 27
3.5 System Information 28
3.6 The MATLAB Search Path 30
4 Script M-files 31
4.1 Script M-file Use 31
4.2 Block Comments and Code Cells 35
4.3 Setting Execution Time 37
4.4 Startup and Finish 38
5 Arrays and Array Operations 40
5.1 Simple Arrays 40
5.2 Array Addressing or Indexing 41
5.3 Array Construction 43
5.4 Array Orientation 46
5.5 Scalar—Array Mathematics 50
5.6 Array—Array Mathematics 50
5.7 Standard Arrays 57
5.8 Array Manipulation 61
5.9 Array Sorting 76
5.10 Subarray Searching 79
5.11 Array-Manipulation Functions 86
5.12 Array Size 92
5.13 Arrays and Memory Utilization 95
6 Multidimensional Arrays 101
6.1 Array Construction 101
6.2 Array Mathematics and Manipulation 105
6.3 Array Size 116
7 Numeric Data Types 119
7.1 Integer Data Types 119
7.2 Floating-Point Data Types 125
7.3 Summary 127
8 Cell Arrays and Structures 129
8.1 Cell Array Creation 130
8.2 Cell Array Manipulation 133
8.3 Retrieving Cell Array Content 135
8.4 Comma-Separated Lists 139
8.5 Cell Functions 143
8.6 Cell Arrays of Strings 146
8.7 Structure Creation 148
8.8 Structure Manipulation 153
8.9 Retrieving Structure Content 155
8.10 Comma-Separated Lists (Again) 157
8.11 Structure Functions 160
8.12 Summary 164
9 Character Strings 165
9.1 String Construction 165
9.2 Numbers to Strings to Numbers 171
9.3 String Evaluation 178
9.4 String Functions 179
9.5 Cell Arrays of Strings 183
9.6 Searching Using Regular Expressions 187
10 Relational and Logical Operations 195
10.1 Relational Operators 195
10.2 Logical Operators 199
10.3 Operator Precedence 200
10.4 Relational and Logical Functions 201
10.5 NaNs and Empty Arrays 204
11 Control Flow 208
11.1 For Loops 208
11.2 While Loops 214
11.3 If-Else-End Constructions 215
11.4 Switch-Case Constructions 218
11.5 Try-Catch Blocks 220
12 Functions 223
12.1 M-file Function Construction Rules 224
12.2 Input and Output Arguments 229
12.3 Function Workspaces 232
12.4 Functions and the MATLAB Search Path 236
12.5 Creating Your Own Toolbox 239
12.6 Command—Function Duality 240
12.7 Function Handles and Anonymous Functions 247
12.8 Nested Functions 247
12.9 Debugging M-files 251
12.10 Syntax Checking and File Dependencies 253
12.11 Profiling M-files 254
13 File and Directory Management 256
13.1 Native Data Files 256
13.2 Data Import and Export 259
13.3 Low-Level File I/O 263
13.4 Directory Management 265
13.5 File Archives and Compression 269
13.6 Internet File Operations 270
14 Set, Bit, and Base Functions 273
14.1 Set Functions 273
14.2 Bit Functions 278
14.3 Base Conversions 279
15 Time Computations 281
15.1 Current Date and Time 281
15.2 Date Format Conversions 282
15.3 Date Functions 288
15.4 Timing Functions 290
15.5 Plot Labels 291
16 Matrix Algebra 294
16.1 Sets of Linear Equations 294
16.2 Matrix Functions 299
16.3 Special Matrices 301
16.4 Sparse Matrices 302
16.5 Sparse Matrix Functions 304
17 Data Analysis 307
17.1 Basic Statistical Analysis 307
17.2 Basic Data Analysis 321
17.3 Data Analysis and Statistical Functions 327
17.4 Time Series Analysis 328
18 Data Interpolation 332
18.1 One-Dimensional Interpolation 332
18.2 Two-Dimensional Interpolation 337
18.3 Triangulation and Scattered Data 341
18.4 Summary 349
19 Polynomials 351
19.1 Roots 351
19.2 Multiplication 352
19.3 Addition 352
19.4 Division 354
19.5 Derivatives and Integrals 355
19.6 Evaluation 356
19.7 Rational Polynomials 356
19.8 Curve Fitting 359
19.9 Polynomial Functions 362
20 Cubic Splines 363
20.1 Basic Features 363
20.2 Piecewise Polynomials 364
20.3 Cubic Hermite Polynomials 367
20.4 Integration 369
20.5 Differentiation 372
20.6 Spline Interpolation on a Plane 373
21 Fourier Analysis 377
21.1 Discrete Fourier Transform 377
21.2 Fourier Series 381
22 Optimization 386
22.1 Zero Finding 386
22.2 Minimization in One Dimension 391
22.3 Minimization in Higher Dimensions 393
22.4 Practical Issues 396
23 Integration and Differentiation 398
23.1 Integration 398
23.2 Differentiation 404
24 Differential Equations 411
24.1 IVP Format 411
24.2 ODE Suite Solvers 412
24.3 Basic Use 413
24.4 Setting Options 417
24.5 BVPs, PDEs, and DDEs 425
25 Two-Dimensional Graphics 426
25.1 The plot Function 426
25.2 Linestyles, Markers, and Colors 428
25.3 Plot Grids, Axes Box, and Labels 430
25.4 Customizing Plot Axes 432
25.5 Multiple Plots 435
25.6 Multiple Figures 435
25.7 Subplots 437
25.8 Interactive Plotting Tools 438
25.9 Screen Updates 440
25.10 Specialized 2-D Plots 441
25.11 Easy Plotting 449
25.12 Text Formatting 451
25.13 Summary 453
26 Three-Dimensional Graphics 456
26.1 Line Plots 456
26.2 Scalar Functions of Two Variables 458
26.3 Mesh Plots 462
26.4 Surface Plots 465
26.5 Mesh and Surface Plots of Irregular Data 471
26.6 Changing Viewpoints 473
26.7 Camera Control 475
26.8 Contour Plots 476
26.9 Specialized 3-D Plots 478
26.10 Volume Visualization 482
26.11 Easy Plotting 489
26.12 Summary 491
27 Using Color and Light 495
27.1 Understanding Colormaps 495
27.2 Using Colormaps 497
27.3 Displaying Colormaps 498
27.4 Creating and Altering Colormaps 500
27.5 Using Color to Describe a Fourth Dimension 502
27.6 Transparency 505
27.7 Lighting Models 507
27.8 Summary 511
28 Images, Movies, and Sound 513
28.1 Images 513
28.2 Image Formats 515
28.3 Image Files 516
28.4 Movies 518
28.5 Movie Files 520
28.6 Sound 524
28.7 Summary 525
29 Printing and Exporting Graphics 527
29.1 Printing and Exporting Using Menus 528
29.2 Command Line Printing and Exporting 529
29.3 Printers and Export File Formats 530
29.4 PostScript Support 532
29.5 Choosing a Renderer 533
29.6 Handle Graphics Properties 534
29.7 Setting Defaults 536
29.8 Publishing 537
29.9 Summary 538
30 Handle Graphics 539
30.1 Objects 539
30.2 Object Handles 541
30.3 Object Properties 541
30.4 Get and Set 542
30.5 Finding Objects 550
30.6 Selecting Objects with the Mouse 552
30.7 Position and Units 553
30.8 Default Properties 556
30.9 Common Properties 559
30.10 Plot Objects 561
30.11 Group Objects 562
30.12 Annotation Axes 564
30.13 Linking Objects 565
30.14 New Plots 566
30.15 Callbacks 567
30.16 M-file Examples 568
30.17 Summary 575
31 MATLAB Classes and Object-Oriented Programming 579
31.1 Overloading 581
31.2 Class Creation 587
31.3 Subscripts 602
31.4 Converter Functions 613
31.5 Precedence, Inheritance, and Aggregation 614
31.6 Handle Classes 616
32 Examples, Examples, Examples 617
32.1 Vectorization 617
32.2 JIT/Acceleration 620
32.3 The Birthday Problem 620
32.4 Up—Down Sequence 625
32.5 Alternating Sequence Matrix 631
32.6 Vandermonde Matrix 636
32.7 Repeated Value Creation and Counting 639
32.8 Differential Sums 649
32.9 Structure Manipulation 657
32.10 Inverse Interpolation 660
32.11 Polynomial Curve Fitting 668
32.12 Nonlinear Curve Fitting 676
32.13 Circle Fitting 685
32.14 Laminar Fluid Flow in a Circular Pipe 690
32.15 Projectile Motion 696
32.16 Bode Plots 707
32.17 Inverse Laplace Transform 718
32.18 Picture-in-a-Picture Zoom 724
Appendix A MATLAB Release Information 731
Appendix B MATLAB Function Information 789
Index 835
The New copy of this book will include any supplemental materials advertised. Please check the title of the book to determine if it should include any access cards, study guides, lab manuals, CDs, etc.
The Used, Rental and eBook copies of this book are not guaranteed to include any supplemental materials. Typically, only the book itself is included. This is true even if the title states it includes any access cards, study guides, lab manuals, CDs, etc.