Experiments with MATLAB
Cleve Moler
October 4, 2011
ii
Copyright 2011
Cleve Moler
Electronic edition published by MathWorks, Inc.
http://www.mathworks.com/moler
Contents
Preface iii
1 Iteration 1
2 Fibonacci Numbers 17
3 Calendars and Clocks 33
4 Matrices 45
5 Linear Equations 63
6 Fractal Fern 75
7 Google PageRank 83
8 Exponential Function 97
9 T Puzzle 113
10 Magic Squares 123
11 TicTacToe Magic 141
12 Game of Life 151
13 Mandelbrot Set 163
14 Sudoku 183
15 Ordinary Differential Equations 199
16 Predator-Prey Model 213
17 Orbits 221
18 Shallow Water Equations 241
iii
iv Contents
19 Morse Code 247
20 Music 263
Experiments with MATLAB
R
Cleve Moler
Copyright
c
2011 Cleve Moler.
All rights reserved. No part of this e-book may be reproduced, stored, or trans-
mitted in any manner without the written permission of the author. For more
information, contact moler@mathworks.com.
The programs described in this e-book have been included for their instructional
value. These programs have been tested with care but are not guaranteed for any
particular purpose. The author does not offer any warranties or representations,
nor does he accept any liabilities with respect to the use of the programs. These
programs should not be relied on as the sole basis to solve a problem whose incorrect
solution could result in injury to person or property.
Matlab
R
is a registered trademark of MathWorks, Inc.
TM
.
For more information about relevant MathWorks policies, see:
http://www.mathworks.com/company/aboutus/policies_statements
October 4, 2011
- 1
- 2
- 3
前往页