Preface |
|
xi | |
|
|
xi | |
|
Who Should Read This Book |
|
|
xii | |
|
How This Book Is Organized |
|
|
xii | |
|
Conventions Used in This Book |
|
|
xiv | |
|
|
xv | |
|
|
1 | (6) |
|
|
1 | (1) |
|
|
2 | (1) |
|
|
2 | (1) |
|
Typing in the Command Window |
|
|
3 | (1) |
|
|
3 | (3) |
|
|
6 | (1) |
|
|
6 | (1) |
|
|
7 | (20) |
|
|
7 | (1) |
|
|
8 | (1) |
|
|
9 | (1) |
|
|
9 | (1) |
|
|
9 | (1) |
|
Algebraic or Symbolic Computation |
|
|
10 | (2) |
|
Substituting in Symbolic Expressions |
|
|
10 | (1) |
|
Symbolic Expressions, Variable Precision, and Exact Arithmetic |
|
|
11 | (1) |
|
|
12 | (3) |
|
|
13 | (1) |
|
|
14 | (1) |
|
|
15 | (1) |
|
|
15 | (2) |
|
|
15 | (1) |
|
|
16 | (1) |
|
|
17 | (1) |
|
Variables and Assignments |
|
|
18 | (2) |
|
|
20 | (2) |
|
|
22 | (5) |
|
|
22 | (1) |
|
|
23 | (1) |
|
|
24 | (1) |
|
|
25 | (2) |
|
3 Interacting with MATLAB |
|
|
27 | (16) |
|
|
27 | (4) |
|
|
27 | (1) |
|
|
28 | (1) |
|
The Current Directory and Search Path |
|
|
28 | (2) |
|
The Command History Window |
|
|
30 | (1) |
|
|
31 | (4) |
|
|
31 | (2) |
|
|
33 | (2) |
|
|
35 | (1) |
|
|
35 | (6) |
|
|
36 | (1) |
|
|
37 | (1) |
|
|
37 | (1) |
|
Wrapping Long Input and Output Lines |
|
|
38 | (1) |
|
Printing and Saving Graphics |
|
|
38 | (1) |
|
|
39 | (2) |
|
|
41 | (2) |
Practice Set A: Algebra and Arithmetic |
|
43 | (36) |
|
|
45 | (14) |
|
|
45 | (1) |
|
|
46 | (1) |
|
|
47 | (1) |
|
Symbolic and Floating-Point Numbers |
|
|
48 | (1) |
|
Functions and Expressions |
|
|
48 | (2) |
|
|
50 | (1) |
|
|
50 | (1) |
|
Variables in Script M-Files |
|
|
50 | (1) |
|
Variables in Function M-Files |
|
|
50 | (1) |
|
Structure of Function M-Files 5I |
|
|
|
|
51 | (1) |
|
|
52 | (1) |
|
|
53 | (1) |
|
Calculating Eigenvalues and Eigenvectors |
|
|
53 | (1) |
|
Doing Calculus with MATLAB |
|
|
54 | (1) |
|
|
54 | (1) |
|
|
54 | (1) |
|
|
55 | (1) |
|
|
56 | (1) |
|
|
57 | (1) |
|
|
57 | (2) |
|
|
59 | (26) |
|
|
59 | (1) |
|
|
59 | (1) |
|
Contour Plots and Implicit Plots |
|
|
60 | (2) |
|
|
62 | (1) |
|
|
62 | (1) |
|
Curves in Three-Dimensional Space |
|
|
62 | (2) |
|
Surfaces in Three-Dimensional Space |
|
|
64 | (1) |
|
|
65 | (1) |
|
|
66 | (1) |
|
|
66 | (1) |
|
Combining Plots in One Window |
|
|
67 | (1) |
|
|
67 | (2) |
|
|
69 | (1) |
|
|
70 | (1) |
|
Full-Fledged Customization |
|
|
71 | (2) |
|
Images, Animations, and Sound |
|
|
73 | (1) |
|
|
74 | (2) |
|
|
76 | (1) |
|
|
77 | (2) |
Practice Set B: Calculus, Graphics, and Linear Algebra |
|
79 | (116) |
|
|
85 | (18) |
|
|
85 | (1) |
|
|
85 | (2) |
|
|
87 | (4) |
|
|
91 | (1) |
|
|
92 | (1) |
|
|
92 | (1) |
|
|
93 | (1) |
|
Other Programming Commands |
|
|
94 | (1) |
|
|
94 | (1) |
|
Cell and Structure Arrays |
|
|
94 | (1) |
|
Commands for Parsing Input and Output |
|
|
95 | (2) |
|
Evaluation and Function Handles |
|
|
97 | (1) |
|
User Input and Screen Output |
|
|
98 | (2) |
|
|
100 | (1) |
|
Interacting with the Operating System |
|
|
100 | (1) |
|
Calling External Programs |
|
|
101 | (1) |
|
|
102 | (1) |
|
|
103 | (8) |
|
Fine Points of Publishing |
|
|
103 | (3) |
|
|
106 | (1) |
|
|
107 | (1) |
|
|
108 | (1) |
|
More Hints for Effective Use of M-Books |
|
|
108 | (3) |
|
|
111 | (12) |
|
A Simple Differential Equation |
|
|
|
|
115 | (5) |
|
Communication with the Workspace |
|
|
120 | (3) |
|
|
123 | (8) |
|
|
123 | (3) |
|
|
126 | (1) |
|
|
127 | (4) |
|
|
131 | (74) |
|
|
132 | (6) |
|
|
138 | (6) |
|
|
144 | (6) |
|
|
150 | (10) |
|
|
160 | (5) |
|
|
165 | (7) |
|
|
172 | (3) |
|
A Numerical Solution of the Heat Equation |
|
|
175 | (10) |
|
A A Model of Traffic Flow |
|
|
185 | (10) |
Practice Set C: Developing Your MATLAB Skills |
|
195 | (24) |
|
|
205 | (14) |
|
|
205 | (1) |
|
Wrong or Unexpected Output |
|
|
205 | (2) |
|
|
207 | (2) |
|
|
209 | (1) |
|
Error or Warning Messages When Plotting |
|
|
209 | (1) |
|
A Previously Saved M-File Evaluates Differently |
|
|
210 | (1) |
|
|
211 | (500) |
|
|
711 | |
|
|
212 | (7) |
Solutions to the Practice Sets |
|
219 | (68) |
|
Solutions to Practice Set A: Algebra and Arithmetic |
|
|
219 | (12) |
|
Solutions to Practice Set B: Calculus, Graphics, and Linear Algebra |
|
|
231 | (24) |
|
Solutions to Practice Set C: Developing Your MATLAB Skills |
|
|
255 | (32) |
Glossary |
|
287 | (15) |
Index |
|
302 | |