211989.zip
大小:(2.34 MB)
只需: 3 个论坛币
马上下载
本附件包括:
- McGraw.Hill.MATLAB.Demystified.Apr.2007.pdf
作者:David McMahon, Ph.D., is a physicist and researcher at Sandia National Laboratories.
He is the author of Linear Algebra Demystified, Quantum Mechanics Demystified,
Relativity Demystified, Signals and Systems Demystified, and Statics and Dynamics
Demystified.
内容:
Preface ix
Acknowledgments x
CHAPTER 1 The MATLAB Environment 1
Overview of the User Interface 2
Command Window and Basic Arithmetic 3
The Assignment Operator 5
Basic Mathematical Defi nitions 9
Complex Numbers 11
Fixing Typos 12
Some File Basics 12
Ending Your MATLAB Session 14
Quiz 14
CHAPTER 2 Vectors and Matrices 15
Vectors 15
Creating Larger Vectors from Existing Variables 18
Creating Vectors with Uniformly Spaced Elements 18
Characterizing a Vector 20
Vector Dot and Cross Products 24
Referencing Vector Components 25
Basic Operations with Matrices 26
Matrix Multiplication 29
More Basic Operations 30
Special Matrix Types 31
Referencing Matrix Elements 32
Finding Determinants and Solving Linear Systems 34
Finding the Rank of a Matrix 35
Finding the Inverse of a Matrix and the Pseudoinverse 39
Reduced Echelon Matrices 44
Matrix Decompositions 45
Quiz 47
CHAPTER 3 Plotting and Graphics 49
Basic 2D Plotting 49
More 2D Plotting Options 54
The Axis Commands 57
Showing Multiple Functions on One Plot 58
Adding Legends 60
Setting Colors 62
Setting Axis Scales 64
Subplots 67
Overlaying Plots and linspace 71
Polar and Logarithmic Plots 74
Plotting Discrete Data 79
Contour Plots 85
Three Dimensional Plots 90
Quiz 96
CHAPTER 4 Statistics and an Introduction to
Programming in MATLAB 97
Generating Histograms 98
Basic Statistics 103
Writing Functions in MATLAB 106
Programming with For Loops 110
Calculating Standard Deviation and Median 110
More MATLAB Programming Tips 116
Quiz 119
CHAPTER 5 Solving Algebraic Equations and
Other Symbolic Tools 121
Solving Basic Algebraic Equations 121
Solving Quadratic Equations 123
Plotting Symbolic Equations 125
Solving Higher Order Equations 130
Systems of Equations 134
Expanding and Collecting Equations 135
Solving with Exponential and Log Functions 138
Series Representations of Functions 142
Quiz 144
CHAPTER 6 Basic Symbolic Calculus and
Differential Equations 145
Calculating Limits 145
Computing Derivatives 153
The dsolve Command 161
Solving ODE’s 161
Systems of Equations and Phase Plane Plots 169
Quiz 178
CHAPTER 7 Numerical Solution of ODEs 179
Solving First Order Equations with ODE23
and ODE45 179
Solving Second Order Equations 188
Quiz 196
CHAPTER 8 Integration 197
The Int Command 197
Defi nite Integration 201
Multidimensional Integration 208
Numerical Integration 209
Quadrature Integration 216
Quiz 217
CHAPTER 9 Transforms 219
The Laplace Transform 219
The Inverse Laplace Transform 222
Solving Differential Equations 227
Computing Fourier Transforms 232
Inverse Fourier Transforms 235
Fast Fourier Transforms 236
Quiz 239
CHAPTER 10 Curve Fitting 241
Fitting to a Linear Function 241
Fitting to an Exponential Function 257
Quiz 258
CHAPTER 11 Working with Special Functions 259
Gamma Functions 259
Bessel Functions 266
The Beta Function 274
Special Integrals 276
Legendre Functions 281
Airy Functions 284
Quiz 286
APPENDIX Bibliography and References 289
Final Exam 291
Answers to Quiz and Exam Questions 303
Index 319