Preface |
|
xi | |
|
|
|
|
3 | (26) |
|
|
4 | (8) |
|
|
12 | (10) |
|
|
22 | (7) |
|
|
28 | (1) |
|
|
28 | (1) |
|
Chapter 2 MATLAB® fundamentals |
|
|
29 | (50) |
|
|
29 | (1) |
|
|
30 | (2) |
|
2.3 Arrays: vectors and matrices |
|
|
32 | (6) |
|
2.4 Vertical motion under gravity |
|
|
38 | (2) |
|
2.5 Operators, expressions, and statements |
|
|
40 | (10) |
|
|
50 | (3) |
|
|
53 | (7) |
|
|
60 | (8) |
|
|
68 | (11) |
|
|
70 | (2) |
|
|
72 | (7) |
|
Chapter 3 Program design and algorithm development |
|
|
79 | (16) |
|
3.1 The program design process |
|
|
80 | (8) |
|
3.2 Programming MATLAB functions |
|
|
88 | (7) |
|
|
92 | (1) |
|
|
92 | (3) |
|
Chapter 4 MATLAB® functions and data import-export utilities |
|
|
95 | (10) |
|
|
95 | (5) |
|
4.2 Importing and exporting data |
|
|
100 | (5) |
|
|
102 | (1) |
|
|
102 | (3) |
|
Chapter 5 Logical vectors |
|
|
105 | (18) |
|
|
106 | (4) |
|
|
110 | (4) |
|
5.3 Subscripting with logical vectors |
|
|
114 | (1) |
|
|
115 | (2) |
|
5.5 Logical vectors instead of el sei fladders |
|
|
117 | (6) |
|
|
119 | (1) |
|
|
120 | (3) |
|
Chapter 6 Matrices and arrays |
|
|
123 | (36) |
|
|
123 | (15) |
|
|
138 | (3) |
|
6.3 Other matrix functions |
|
|
141 | (1) |
|
6.4 Population growth: Leslie matrices |
|
|
141 | (4) |
|
|
145 | (2) |
|
|
147 | (6) |
|
|
153 | (6) |
|
|
155 | (1) |
|
|
156 | (3) |
|
Chapter 7 Function M-files |
|
|
159 | (18) |
|
7.1 Example: Newton's method again |
|
|
159 | (2) |
|
|
161 | (6) |
|
|
167 | (1) |
|
7.4 Command/function duality |
|
|
168 | (1) |
|
7.5 Function name resolution |
|
|
169 | (1) |
|
|
170 | (2) |
|
|
172 | (5) |
|
|
173 | (1) |
|
|
174 | (3) |
|
|
177 | (16) |
|
8.1 Determinate repetition with for |
|
|
177 | (3) |
|
8.2 Indeterminate repetition with while |
|
|
180 | (13) |
|
|
187 | (1) |
|
|
188 | (5) |
|
Chapter 9 MATLAB® graphics |
|
|
193 | (40) |
|
|
193 | (9) |
|
|
202 | (8) |
|
|
210 | (6) |
|
|
216 | (2) |
|
|
218 | (3) |
|
|
221 | (4) |
|
|
225 | (1) |
|
9.8 Saving, printing, and exporting graphs |
|
|
226 | (7) |
|
|
227 | (1) |
|
|
228 | (5) |
|
Chapter 10 Vectors as arrays & other data structures |
|
|
233 | (20) |
|
|
233 | (7) |
|
10.2 Frequencies, bar charts and histograms |
|
|
240 | (2) |
|
|
242 | (3) |
|
|
245 | (2) |
|
|
247 | (4) |
|
|
251 | (2) |
|
|
251 | (2) |
|
Chapter 11 Errors & pitfalls |
|
|
253 | (8) |
|
|
253 | (1) |
|
|
254 | (1) |
|
|
255 | (6) |
|
|
256 | (1) |
|
|
256 | (5) |
|
|
|
Chapter 12 Dynamical systems |
|
|
261 | (20) |
|
|
263 | (2) |
|
|
265 | (2) |
|
|
267 | (9) |
|
12.4 Projectile with friction |
|
|
276 | (5) |
|
|
279 | (1) |
|
|
280 | (1) |
|
|
281 | (12) |
|
13.1 Random number generation |
|
|
281 | (1) |
|
|
282 | (1) |
|
|
283 | (1) |
|
|
284 | (1) |
|
|
284 | (2) |
|
|
286 | (3) |
|
13.7 Normal (Gaussian] random numbers |
|
|
289 | (4) |
|
|
289 | (1) |
|
|
289 | (4) |
|
Chapter 14 Introduction to numerical methods |
|
|
293 | (30) |
|
|
293 | (5) |
|
|
298 | (2) |
|
14.3 Numerical differentiation |
|
|
300 | (2) |
|
14.4 First-order differential equations |
|
|
302 | (5) |
|
14.5 Ordinary differential equations |
|
|
307 | (1) |
|
|
307 | (5) |
|
14.7 A partial differential equation |
|
|
312 | (4) |
|
14.8 Complex variables and conformal mapping |
|
|
316 | (2) |
|
14.9 Other numerical methods |
|
|
318 | (5) |
|
|
319 | (1) |
|
|
319 | (4) |
|
Chapter 15 Signal processing |
|
|
323 | (12) |
|
|
324 | (5) |
|
15.2 Fast Fourier Transform (FFT) |
|
|
329 | (6) |
|
Chapter 16 SIMULINK toolbox |
|
|
335 | (16) |
|
16.1 Mass-spring-damper dynamic system |
|
|
341 | (2) |
|
16.2 Bouncing ball dynamic system |
|
|
343 | (2) |
|
16.3 The van der Pol oscillator |
|
|
345 | (1) |
|
16.4 The Duffing oscillator |
|
|
346 | (5) |
|
|
348 | (3) |
|
Chapter 17 Symbolics toolbox |
|
|
351 | (18) |
|
|
352 | (8) |
|
|
360 | (2) |
|
17.3 Laplace and Z transforms |
|
|
362 | (1) |
|
17.4 Generalized functions* |
|
|
363 | (2) |
|
17.5 Differential equations |
|
|
365 | (2) |
|
17.6 Implementation of funtool and Symbolic help |
|
|
367 | (2) |
|
|
368 | (1) |
|
Appendix A Syntax: quick reference |
|
|
369 | (6) |
|
|
369 | (1) |
|
|
369 | (1) |
|
|
369 | (1) |
|
|
370 | (1) |
|
|
371 | (1) |
|
|
371 | (1) |
|
|
372 | (1) |
|
|
372 | (3) |
|
|
375 | (2) |
|
Appendix C Command and function: quick reference |
|
|
377 | (8) |
|
C.1 General-purpose commands |
|
|
377 | (1) |
|
|
378 | (1) |
|
C.3 MATLAB programming tools |
|
|
378 | (1) |
|
|
379 | (1) |
|
C.5 Mathematical functions |
|
|
380 | (1) |
|
|
381 | (1) |
|
|
381 | (1) |
|
|
381 | (1) |
|
|
381 | (1) |
|
C.10 Sparse matrix functions |
|
|
382 | (1) |
|
C.11 Character string functions |
|
|
382 | (1) |
|
|
382 | (1) |
|
|
382 | (1) |
|
|
383 | (1) |
|
|
383 | (2) |
|
Appendix D Solutions to selected exercises |
|
|
385 | (14) |
|
Appendix E Getting started with Live Script |
|
|
399 | (4) |
Index |
|
403 | |