Preface |
|
xi | |
|
|
xi | |
|
Who Should Read This Book |
|
|
xii | |
|
How This Book Is Organized |
|
|
xii | |
|
Conventions Used in This Book |
|
|
xiv | |
|
Additional Online Resources |
|
|
xv | |
|
|
xv | |
1 Getting Started |
|
1 | (6) |
|
|
1 | (1) |
|
|
2 | (1) |
|
|
2 | (1) |
|
Typing in the Command Window |
|
|
3 | (1) |
|
|
3 | (2) |
|
|
5 | (1) |
|
|
6 | (1) |
|
|
6 | (1) |
2 MATLAB Basics |
|
7 | (18) |
|
|
7 | (1) |
|
|
8 | (1) |
|
|
9 | (1) |
|
|
9 | (1) |
|
|
9 | (1) |
|
Algebraic or Symbolic Computation |
|
|
10 | (2) |
|
Substituting in Symbolic Expressions |
|
|
10 | (1) |
|
Symbolic Data, Variable Precision, and Exact Arithmetic |
|
|
11 | (1) |
|
|
12 | (3) |
|
|
12 | (2) |
|
|
14 | (1) |
|
|
15 | (1) |
|
|
15 | (1) |
|
|
15 | (1) |
|
|
16 | (1) |
|
|
16 | (3) |
|
Naming and Clearing Variables |
|
|
18 | (1) |
|
|
19 | (2) |
|
|
21 | (4) |
|
|
22 | (1) |
|
|
22 | (1) |
|
|
23 | (1) |
|
|
24 | (1) |
3 Interacting with MATLAB |
|
25 | (16) |
|
|
25 | (4) |
|
|
25 | (1) |
|
|
26 | (1) |
|
The Current Folder and Search Path |
|
|
27 | (1) |
|
The Command History Window |
|
|
28 | (1) |
|
|
29 | (4) |
|
|
29 | (2) |
|
|
31 | (2) |
|
|
33 | (1) |
|
|
33 | (6) |
|
|
34 | (1) |
|
|
35 | (1) |
|
|
36 | (1) |
|
Wrapping Long Input and Output Lines |
|
|
36 | (1) |
|
Printing and Saving Graphics |
|
|
37 | (1) |
|
|
38 | (1) |
|
|
39 | (2) |
Practice Set A: Algebra and Arithmetic |
|
41 | (64) |
|
|
43 | (14) |
|
|
43 | (1) |
|
|
44 | (3) |
|
|
45 | (1) |
|
Symbolic and Floating-Point Numbers |
|
|
46 | (1) |
|
Functions and Expressions |
|
|
47 | (1) |
|
|
48 | (1) |
|
|
48 | (2) |
|
Variables in Script M-Files |
|
|
48 | (1) |
|
Variables in Function M-Files |
|
|
49 | (1) |
|
Structure of Function M-Files |
|
|
49 | (1) |
|
|
50 | (1) |
|
|
50 | (2) |
|
|
51 | (1) |
|
Calculating Eigenvalues and Eigenvectors |
|
|
51 | (1) |
|
Doing Calculus with MATLAB |
|
|
52 | (3) |
|
|
52 | (1) |
|
|
52 | (2) |
|
|
54 | (1) |
|
|
54 | (1) |
|
|
55 | (1) |
|
|
55 | (2) |
|
|
57 | (20) |
|
|
57 | (3) |
|
|
57 | (1) |
|
Contour Plots and Implicit Plots |
|
|
58 | (2) |
|
|
60 | (1) |
|
|
60 | (4) |
|
Curves in Three-Dimensional Space |
|
|
60 | (2) |
|
Surfaces in Three-Dimensional Space |
|
|
62 | (2) |
|
|
64 | (2) |
|
|
64 | (1) |
|
|
64 | (1) |
|
Combining Plots in One Window |
|
|
65 | (1) |
|
|
66 | (5) |
|
|
67 | (1) |
|
|
68 | (1) |
|
Full-Fledged Customization |
|
|
69 | (2) |
|
Images, Animations, and Sound |
|
|
71 | (6) |
|
|
71 | (3) |
|
|
74 | (1) |
|
|
75 | (2) |
|
|
77 | (18) |
|
|
77 | (7) |
|
|
77 | (2) |
|
|
79 | (2) |
|
Branching with Logical Expressions |
|
|
81 | (2) |
|
|
83 | (1) |
|
|
84 | (1) |
|
|
84 | (1) |
|
|
85 | (1) |
|
Other Programming Commands |
|
|
85 | (7) |
|
|
86 | (1) |
|
Cell and Structure Arrays |
|
|
86 | (1) |
|
Commands for Parsing Input and Output |
|
|
87 | (2) |
|
Evaluation and Function Handles |
|
|
89 | (1) |
|
User Input and Screen Output |
|
|
90 | (2) |
|
|
92 | (1) |
|
Interacting with the Operating System |
|
|
92 | (3) |
|
Calling External Programs |
|
|
92 | (1) |
|
|
93 | (2) |
|
|
95 | (10) |
|
Fine Points of Publishing |
|
|
95 | (5) |
|
|
96 | (1) |
|
|
97 | (2) |
|
|
99 | (1) |
|
|
100 | (11) |
|
|
101 | (1) |
|
|
102 | (1) |
|
More Hints for Effective Use of M-Books |
|
|
102 | (3) |
Practice Set B: Math, Graphics, and Programming |
|
105 | (102) |
|
|
111 | (10) |
|
|
112 | (1) |
|
|
112 | (2) |
|
The MuPAD Notebook Interface |
|
|
114 | (2) |
|
Additional Options to MATLAB Commands |
|
|
116 | (1) |
|
MuPAD Libraries Support Specialized Topics |
|
|
116 | (1) |
|
ODEs and MuPAD to MATLAB Communication |
|
|
117 | (2) |
|
|
119 | (1) |
|
|
120 | (1) |
|
|
121 | (12) |
|
A Simple Differential Equation |
|
|
121 | (5) |
|
|
126 | (4) |
|
Communication with the Workspace |
|
|
130 | (3) |
|
|
133 | (8) |
|
|
133 | (3) |
|
|
136 | (1) |
|
|
137 | (4) |
|
|
141 | (66) |
|
|
142 | (5) |
|
|
147 | (8) |
|
|
147 | (6) |
|
IQ Sampling: Are You the Smartest Person in the Room? |
|
|
153 | (2) |
|
|
155 | (10) |
|
|
155 | (2) |
|
|
157 | (6) |
|
Re-running the Model with Simulink |
|
|
163 | (2) |
|
|
165 | (7) |
|
Image Compression and Manipulation |
|
|
172 | (7) |
|
Singular Value Decomposition and Compression |
|
|
172 | (2) |
|
|
174 | (3) |
|
Image Manipulation and the Image Processing Toolbox |
|
|
177 | (2) |
|
Processing and Analysis of Financial Data |
|
|
179 | (6) |
|
|
185 | (4) |
|
|
186 | (1) |
|
A Higher Initial Velocity |
|
|
187 | (1) |
|
When Does the Pendulum Swing Overhead? |
|
|
187 | (2) |
|
Numerical Solution of the Heat Equation |
|
|
189 | (10) |
|
A Finite-Difference Solution |
|
|
190 | (3) |
|
The Case of Variable Conductivity |
|
|
193 | (2) |
|
|
195 | (3) |
|
|
198 | (1) |
|
|
199 | (8) |
Practice Set C: Developing Your MATLAB Skills |
|
207 | (22) |
|
|
215 | (14) |
|
|
215 | (7) |
|
Wrong or Unexpected Output |
|
|
215 | (2) |
|
|
217 | (2) |
|
|
219 | (1) |
|
Error or Warning Messages When Plotting |
|
|
220 | (1) |
|
A Previously Saved M-File Evaluates Differently |
|
|
221 | (1) |
|
|
222 | (1) |
|
|
222 | (1) |
|
|
222 | (7) |
Solutions to the Practice Sets |
|
229 | (62) |
|
Solutions to Practice Set A: Algebra and Arithmetic |
|
|
229 | (11) |
|
Solutions to Practice Set B: Math, Graphics, and Programming |
|
|
240 | (25) |
|
Solutions to Practice Set C: Developing Your MATLAB Skills |
|
|
265 | (26) |
Glossary |
|
291 | (16) |
|
|
291 | (1) |
|
|
292 | (1) |
|
|
292 | (1) |
|
|
293 | (5) |
|
|
298 | (4) |
|
|
302 | (2) |
|
|
304 | (1) |
|
|
304 | (1) |
|
|
305 | (2) |
Index |
|
307 | |