Published by Pearson (September 10, 2014) © 2015

Duane Hanselman | Bruce Littlefield
    VitalSource eTextbook (Lifetime access)
    €49,99
    Adding to cart… The item has been added
    ISBN-13: 9781292014104

    Mastering MATLAB ,1st edition

    Language: English

    Table of Contents

    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