GO TO
MATLAB: An Introduction with Applications, 3rd Edition
by
Gilat, Amos, The Ohio State Univ.
Publisher: John Wiley & Sons
Publishing Date: 2008/01/02
eText ISBN-10
0-470-28305-X
eText ISBN-13
978-0-470-28305-9
Print ISBN-10
0-470-10877-0
Print ISBN-13
978-0-470-10877-2
« Back to My CourseSmart
MATLAB: An Introduction with Applications, 3rd Edition
by
Gilat, Amos, The Ohio State Univ.
eTextbook $41.50
(180 day subscription)
Compare Online & Downloadable
Copyright, iv
Preface, v
Introduction, 1
Chapter 1. Starting with ...
Chapter 2. Creating Array...
Chapter 3. Mathematical O...
Chapter 4. Using Script F...
Chapter 5. Two-Dimensiona...
Chapter 6. User-Defined F...
Chapter 7. Programming in...
Chapter 8. Polynomials, C...
Chapter 9. Three-Dimensio...
Chapter 10. Applications ...
Chapter 11. Symbolic Math...
Appendix: Summary of Char...
Answers to Selected Probl...
Index, 369
Table of Contents
Copyright, iv
Preface, v
Introduction, 1
Chapter 1. Starting with MATLAB, 5
1.1. STARTING MATLAB, MATLAB WINDOWS, 5
1.2. WORKING IN THE COMMAND WINDOW, 9
1.3. ARITHMETIC OPERATIONS WITH SCALARS, 10
1.3.1. Order of Precedence, 11
1.3.2. Using MATLAB as a Calculator, 11
1.4. DISPLAY FORMATS, 12
1.5. ELEMENTARY MATH BUILT-IN FUNCTIONS, 13
1.6. DEFINING SCALAR VARIABLES, 16
1.6.1. The Assignment Operator, 16
1.6.2. Rules About Variable Names, 18
1.6.3. Predefined Variables and keywords, 18
1.7. USEFUL COMMANDS FOR MANAGING VARIABLES, 19
1.8. SCRIPT FILES, 20
1.8.1. Notes About Script Files, 20
1.8.2. Creating and Saving a Script File, 21
1.8.3. Running (Executing) a Script File, 22
1.8.4. Current Directory, 22
1.9. EXAMPLES OF MATLAB APPLICATIONS, 24
1.10. PROBLEMS, 27
Chapter 2. Creating Arrays, 33
2.1. CREATING A ONE-DIMENSIONAL ARRAY (VECTOR), 33
2.2. CREATING A TWO-DIMENSIONAL ARRAY (MATRIX), 36
2.2.1. The zeros, ones and eye Commands, 38
2.3. NOTES ABOUT VARIABLES IN MATLAB, 39
2.4. THE TRANSPOSE OPERATOR, 39
2.5. ARRAY ADDRESSING, 40
2.5.1. Vector, 40
2.5.2. Matrix, 41
2.6. USING A COLON : IN ADDRESSING ARRAYS, 41
2.7. ADDING ELEMENTS TO EXISTING VARIABLES, 44
2.8. DELETING ELEMENTS, 46
2.9. BUILT-IN FUNCTIONS FOR HANDLING ARRAYS, 47
2.10. STRINGS AND STRINGS AS VARIABLES, 50
2.11. PROBLEMS, 53
Chapter 3. Mathematical Operations with Arrays, 57
3.1. ADDITION AND SUBTRACTION, 58
3.2. ARRAY MULTIPLICATION, 59
3.3. ARRAY DIVISION, 62
3.4. ELEMENT-BY-ELEMENT OPERATIONS, 66
3.5. USING ARRAYS IN MATLAB BUILT-IN MATH FUNCTIONS, 69
3.6. BUILT-IN FUNCTIONS FOR ANALYZING ARRAYS, 69
3.7. GENERATION OF RANDOM NUMBERS, 71
3.8. EXAMPLES OF MATLAB APPLICATIONS, 73
3.9. PROBLEMS, 79
Chapter 4. Using Script Files and Managing Data, 85
4.1. THE MATLAB WORKSPACE AND THE WORKSPACE WINDOW, 86
4.2. INPUT TO A SCRIPT FILE, 87
4.3. OUTPUT COMMANDS, 90
4.3.1. The disp Command, 91
4.3.2. The fprintf Command, 93
4.4. THE save AND load COMMANDS, 101
4.4.1. The save Command, 101
4.4.2. The load Command, 102
4.5. IMPORTING AND EXPORTING DATA, 104
4.5.1. Commands for Importing and Exporting Data, 104
4.5.2. Using the Import Wizard, 106
4.6. EXAMPLES OF MATLAB APPLICATIONS, 108
4.7. PROBLEMS, 113
Chapter 5. Two-Dimensional Plots, 119
5.1. THE plot COMMAND, 120
5.1.1. Plot of Given Data, 124
5.1.2. Plot of a Function, 125
5.2. THE fplot COMMAND, 126
5.3. PLOTTING MULTIPLE GRAPHS IN THE SAME PLOT, 127
5.3.1. Using the plot Command, 127
5.3.2. Using the hold on, hold off Commands, 128
5.3.3. Using the line Command, 129
5.4. FORMATTING A PLOT, 130
5.4.1. Formatting a Plot Using Commands, 130
5.4.2. Formatting a Plot Using the Plot Editor, 134
5.5. PLOTS WITH LOGARITHMIC AXES, 135
5.6. PLOTS WITH ERROR BARS, 136
5.7. PLOTS WITH SPECIAL GRAPHICS, 138
5.8. HISTOGRAMS, 139
5.9. POLAR PLOTS, 142
5.10. PLOTTING MULTIPLE PLOTS ON THE SAME PAGE, 143
5.11. MULTIPLE FIGURE WINDOWS, 143
5.12. EXAMPLES OF MATLAB APPLICATIONS, 145
5.13. PROBLEMS, 149
Chapter 6. User-Defined Functions and Function Files, 155
6.1. CREATING A FUNCTION FILE, 156
6.2. STRUCTURE OF A FUNCTION FILE, 156
6.2.1. Function Definition Line, 157
6.2.2. Input and Output Arguments, 158
6.2.3. The H1 Line and Help Text Lines, 159
6.2.4. Function Body, 160
6.3. LOCAL AND GLOBAL VARIABLES, 160
6.4. SAVING A FUNCTION FILE, 161
6.5. USING A USER-DEFINED FUNCTION, 162
6.6. EXAMPLES OF SIMPLE USER-DEFINED FUNCTIONS, 163
6.7. COMPARISON BETWEEN SCRIPT FILES AND FUNCTION FILES, 165
6.8. ANONYMOUS AND INLINE FUNCTIONS, 165
6.8.1. Anonymous Functions, 166
6.8.2. Inline Functions, 169
6.9. FUNCTION FUNCTIONS, 170
6.9.1. Using Function Handles for Passing a Function into a Function Function, 171
6.9.2. Using a Function Name for Passing a Function into a Function Function, 174
6.10. SUBFUNCTIONS, 176
6.11. NESTED FUNCTIONS, 178
6.12. EXAMPLES OF MATLAB APPLICATIONS, 181
6.13. PROBLEMS, 184
Chapter 7. Programming in MATLAB, 191
7.1. RELATIONAL AND LOGICAL OPERATORS, 192
7.2. CONDITIONAL STATEMENTS, 200
7.2.1. The if-end Structure, 200
7.2.2. The if-else-end Structure, 202
7.2.3. The if-elseif-else-end Structure, 204
7.3. THE switch-case STATEMENT, 205
7.4. LOOPS, 208
7.4.1. for-end Loops, 208
7.4.2. while-end Loops, 213
7.5. NESTED LOOPS AND NESTED CONDITIONAL STATEMENTS, 216
7.6. THE break AND continue COMMANDS, 218
7.7. EXAMPLES OF MATLAB APPLICATIONS, 219
7.8. PROBLEMS, 227
Chapter 8. Polynomials, Curve Fitting, and Interpolation, 235
8.1. POLYNOMIALS, 235
8.1.1. Value of a Polynomial, 236
8.1.2. Roots of a Polynomial, 237
8.1.3. Addition, Multiplication, and Division of Polynomials, 238
8.1.4. Derivatives of Polynomials, 240
8.2. CURVE FITTING, 241
8.2.1. Curve Fitting with Polynomials, the polyfit Function, 241
8.2.2. Curve Fitting with Functions Other than Polynomials, 245
8.3. INTERPOLATION, 248
8.4. THE BASIC FITTING INTERFACE, 252
8.5. EXAMPLES OF MATLAB APPLICATIONS, 255
8.6. PROBLEMS, 260
Chapter 9. Three-Dimensional Plots, 267
9.1. LINE PLOTS, 267
9.2. MESH AND SURFACE PLOTS, 268
9.3. PLOTS WITH SPECIAL GRAPHICS, 275
9.4. THE view COMMAND, 277
9.5. EXAMPLES OF MATLAB APPLICATIONS, 279
9.6. PROBLEMS, 284
Chapter 10. Applications in Numerical Analysis, 289
10.1. SOLVING AN EQUATION WITH ONE VARIABLE, 289
10.2. FINDING A MINIMUM OR A MAXIMUM OF A FUNCTION, 292
10.3. NUMERICAL INTEGRATION, 294
10.4. ORDINARY DIFFERENTIAL EQUATIONS, 297
10.5. EXAMPLES OF MATLAB APPLICATIONS, 301
10.6. PROBLEMS, 307
Chapter 11. Symbolic Math, 313
11.1. SYMBOLIC OBJECTS, AND SYMBOLIC EXPRESSIONS, 314
11.1.1. Creating Symbolic Objects, 314
11.1.2. Creating Symbolic Expressions, 316
11.1.3. The findsym Command and the Default Symbolic Variable, 319
11.2. CHANGING THE FORM OF AN EXISTING SYMBOLIC EXPRESSION, 320
11.2.1. The collect, expand, and factor Commands, 320
11.2.2. The simplify and simple Commands, 322
11.2.3. The pretty Command, 323
11.3. SOLVING ALGEBRAIC EQUATIONS, 324
11.4. DIFFERENTIATION, 329
11.5. INTEGRATION, 331
11.6. SOLVING AN ORDINARY DIFFERENTIAL EQUATION, 332
11.7. PLOTTING SYMBOLIC EXPRESSIONS, 335
11.8. NUMERICAL CALCULATIONS WITH SYMBOLIC EXPRESSIONS, 338
11.9. EXAMPLES OF MATLAB APPLICATIONS, 342
11.10. PROBLEMS, 350
Appendix: Summary of Characters, Commands, and Functions, 357
Answers to Selected Problems, 363
Index, 369
Please use the Print button in the CourseSmart Reader header.