Note: Supplemental materials are not guaranteed with Rental or Used book purchases.
Purchase Benefits
Preface | p. v |
Introduction | p. 1 |
Starting with MATLAB | p. 5 |
Starting MATLAB, MATLAB Windows | p. 5 |
Working in the Command Window | p. 9 |
Arithmetic Operations with Scalars | p. 10 |
Order of Precedence | p. 11 |
Using MATLAB as a Calculator | p. 11 |
Display Formats | p. 12 |
Elementary Math Built-In Functions | p. 13 |
Defining Scalar Variables | p. 16 |
The Assignment Operator | p. 16 |
Rules About Variable Names | p. 18 |
Predefined Variables and keywords | p. 18 |
Useful Commands for Managing Variables | p. 19 |
Script Files | p. 20 |
Notes About Script Files | p. 20 |
Creating and Saving a Script File | p. 21 |
Running (Executing) a Script File | p. 22 |
Current Directory | p. 22 |
Examples of MATLAB Applications | p. 24 |
Problems | p. 27 |
Creating Arrays | p. 33 |
Creating a One-Dimensional Array (Vector) | p. 33 |
Creating a Two-Dimensional Array (Matrix) | p. 36 |
The zeros, ones and eye Commands | p. 38 |
Notes About Variables in MATLAB | p. 39 |
The Transpose Operator | p. 39 |
Array Addressing | p. 40 |
Vector | p. 40 |
Matrix | p. 41 |
Using a Colon: in Addressing Arrays | p. 41 |
Adding Elements to Existing Variables | p. 44 |
Deleting Elements | p. 46 |
Built-In Functions for Handling Arrays | p. 47 |
Strings and Strings as Variables | p. 50 |
Problems | p. 53 |
Mathematical Operations with Arrays | p. 57 |
Addition and Subtraction | p. 58 |
Array Multiplication | p. 59 |
Array Division | p. 62 |
Element-by-Element Operations | p. 66 |
Using Arrays in MATLAB Built-In Math Functions | p. 69 |
Built-In Functions for Analyzing Arrays | p. 69 |
Generation of Random Numbers | p. 71 |
Examples of MATLAB Applications | p. 73 |
Problems | p. 79 |
Using Script Files and Managing Data | p. 85 |
The MATLAB Workspace and the Workspace Window | p. 86 |
Input to a Script File | p. 87 |
Output Commands | p. 90 |
The disp Command | p. 91 |
The fprintf Command | p. 93 |
The save and load Commands | p. 101 |
The save Command | p. 101 |
The load Command | p. 102 |
Importing and Exporting Data | p. 104 |
Commands for Importing and Exporting Data | p. 104 |
Using the Import Wizard | p. 106 |
Examples of MATLAB Applications | p. 108 |
Problems | p. 113 |
Two-Dimensional Plots | p. 119 |
The plot Command | p. 120 |
Plot of Given Data | p. 124 |
Plot of a Function | p. 125 |
The fplot Command | p. 126 |
Plotting Multiple Graphs in the Same Plot | p. 127 |
Using the plot Command | p. 127 |
Using the hold on, hold off Commands | p. 128 |
Using the line Command | p. 129 |
Formatting a Plot | p. 130 |
Formatting a Plot Using Commands | p. 130 |
Formatting a Plot Using the Plot Editor | p. 134 |
Plots with Logarithmic Axes | p. 135 |
Plots with Error Bars | p. 136 |
Plots with Special Graphics | p. 138 |
Histograms | p. 139 |
Polar Plots | p. 142 |
Plotting Multiple Plots on the Same Page | p. 143 |
Multiple Figure Windows | p. 143 |
Examples of MATLAB Applications | p. 145 |
Problems | p. 149 |
User-Defined Functions and Function Files | p. 155 |
Creating a Function File | p. 156 |
Structure of a Function File | p. 156 |
Function Definition Line | p. 157 |
Input and Output Arguments | p. 158 |
The H1 Line and Help Text Lines | p. 159 |
Function Body | p. 160 |
Local and Global Variables | p. 160 |
Saving a Function File | p. 161 |
Using a User-Defined Function | p. 162 |
Examples of Simple User-Defined Functions | p. 163 |
Comparison Between Script Files and Function Files | p. 165 |
Anonymous and Inline Functions | p. 165 |
Anonymous Functions | p. 166 |
Inline Functions | p. 169 |
Function Functions | p. 170 |
Using Function Handles for Passing a Function into a Function Function | p. 171 |
Using a Function Name for Passing a Function into a Function Function | p. 174 |
Subfunctions | p. 176 |
Nested Functions | p. 178 |
Examples of MATLAB Applications | p. 181 |
Problems | p. 184 |
Programming in MATLAB | p. 191 |
Relational and Logical Operators | p. 192 |
Conditional Statements | p. 200 |
The if-end Structure | p. 200 |
The if-else-end Structure | p. 202 |
The if-elseif-else-end Structure | p. 204 |
The switch-case Statement | p. 205 |
Loops | p. 208 |
for-end Loops | p. 208 |
while-end Loops | p. 213 |
Nested Loops and Nested Conditional Statements | p. 216 |
The break and continue Commands | p. 218 |
Examples of MATLAB Applications | p. 219 |
Problems | p. 227 |
Polynomials, Curve Fitting, and Interpolation | p. 235 |
Polynomials | p. 235 |
Value of a Polynomial | p. 236 |
Roots of a Polynomial | p. 237 |
Addition, Multiplication, and Division of Polynomials | p. 238 |
Derivatives of Polynomials | p. 240 |
Curve Fitting | p. 241 |
Curve Fitting with Polynomials, the polyfit Function | p. 241 |
Curve Fitting with Functions Other than Polynomials | p. 245 |
Interpolation | p. 248 |
The Basic Fitting Interface | p. 252 |
Examples of Matlab Applications | p. 255 |
Problems | p. 260 |
Three-Dimensional Plots | p. 267 |
Line Plots | p. 267 |
Mesh and Surface Plots | p. 268 |
Plots with Special Graphics | p. 275 |
The view Command | p. 277 |
Examples of MATLAB Applications | p. 279 |
Problems | p. 284 |
Applications in Numerical Analysis | p. 289 |
Solving an Equation with One Variable | p. 289 |
Finding a Minimum or a Maximum of a Function | p. 292 |
Numerical Integration | p. 294 |
Ordinary Differential Equations | p. 297 |
Examples of MATLAB Applications | p. 301 |
Problems | p. 307 |
Symbolic Math | p. 313 |
Symbolic Objects, and Symbolic Expressions | p. 314 |
Creating Symbolic Objects | p. 314 |
Creating Symbolic Expressions | p. 316 |
The findsym Command and the Default Symbolic Variable | p. 319 |
Changing the Form of an Existing Symbolic Expression | p. 320 |
The collect, expand, and factor Commands | p. 320 |
The simplify and simple Commands | p. 322 |
The pretty Command | p. 323 |
Solving Algebraic Equations | p. 324 |
Differentiation | p. 329 |
Integration | p. 331 |
Solving an Ordinary Differential Equation | p. 332 |
Plotting Symbolic Expressions | p. 335 |
Numerical Calculations with Symbolic Expressions | p. 338 |
Examples of MATLAB Applications | p. 342 |
Problems | p. 350 |
Summary of Characters, Commands, and Functions | p. 357 |
Answers to Selected Problems | p. 363 |
Index | p. 369 |
Table of Contents provided by Ingram. All Rights Reserved. |
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.