did-you-know? rent-now

Rent More, Save More! Use code: ECRENTAL

did-you-know? rent-now

Rent More, Save More! Use code: ECRENTAL

5% off 1 book, 7% off 2 books, 10% off 3+ books

9780750652407

Essential Matlab for Scientists and Engineers

by
  • ISBN13:

    9780750652407

  • ISBN10:

    0750652403

  • Edition: 2nd
  • Format: Paperback
  • Copyright: 2002-02-12
  • Publisher: Elsevier Science & Technology
  • Purchase Benefits
  • Free Shipping Icon Free Shipping On Orders Over $35!
    Your order must be $35 or more to qualify for free economy shipping. Bulk sales, PO's, Marketplace items, eBooks and apparel do not qualify for this offer.
  • eCampus.com Logo Get Rewarded for Ordering Your Textbooks! Enroll Now
List Price: $43.95
  • Digital
    $48.32
    Add to Cart

    DURATION
    PRICE

Supplemental Materials

What is included with this book?

Summary

Based on a teach-yourself approach, the fundamentals of MATLAB are illustrated throughout with many examples from a number of different scientific and engineering areas, such as simulation, population modelling, and numerical methods, as well as from business and everyday life. Some of the examples draw on first-year university level maths, but these are self-contained so that their omission will not detract from learning the principles of using MATLAB. This completely revised new edition is based on the latest version of MATLAB. New chapters cover handle graphics, graphical user interfaces (GUIs), structures and cell arrays, and importing/exporting data. The chapter on numerical methods now includes a general GUI-driver ODE solver.

Table of Contents

Preface to the second edition xiii
Preface to the first edition xv
Part I Essentials 1(156)
Getting going
3(7)
Introduction
3(1)
Using MATLAB
3(6)
Website
9(1)
MATLAB fundamentals
10(48)
The MATLAB desktop
11(1)
Programs
11(4)
Cut and paste
11(2)
Saving a program: script files
13(1)
How a program works
14(1)
Variables and the workspace
15(2)
Variables
15(1)
Case sensitivity
16(1)
The workspace
16(1)
Adding commonly used constants to the workspace
17(1)
Arrays: vectors and matrices
17(4)
Initializing vectors: explicit lists
17(1)
Initializing vectors: the colon operator
18(1)
linspace
19(1)
Transposing vectors
19(1)
Subscripts
19(1)
Matrices
20(1)
Capturing output
20(1)
Vertical motion under gravity
21(1)
Operators, expressions and statements
22(9)
Numbers
22(1)
Data types
23(1)
Arithmetic operators
23(1)
Precedence of operators
24(1)
The colon operator
24(1)
The transpose operator
25(1)
Arithmetic operations on arrays
25(1)
Expressions
26(1)
Statements
26(1)
Statements, commands and functions
27(1)
Vectorization of formulae
27(4)
Output
31(2)
disp
31(1)
format
31(1)
Scale factors
32(1)
Repeating with for
33(6)
Square rooting with Newton
33(1)
Factorials!
34(1)
Limit of a sequence
34(1)
The basic for construct
35(1)
for in a single line
36(1)
More general for
36(1)
Avoid for loops by vectorizing!
36(2)
A common mistake: forless loops!
38(1)
Decisions
39(6)
The one-line if statement
39(1)
The if-else construct
40(1)
The one-line if - else statement
41(1)
elseif
41(1)
Logical operators
42(1)
Multiple ifs versus elseif
42(2)
Nested ifs
44(1)
Vectorizing ifs?
44(1)
Switch
45(1)
Complex numbers
45(1)
More on input and output
46(2)
fprintf
47(1)
Output to a disk file with fprintf
47(1)
General file I/O
48(1)
Saving and loading data
48(1)
Odds'n ends
48(2)
Variables, functions and scripts with the same name
48(1)
The input statement
48(2)
Shelling out to the operating system
50(1)
More Help functions
50(1)
Programming style
50(8)
Developing algorithms
58(5)
Structure plans
58(2)
Quadratic equation
59(1)
Structured programming with functions
60(3)
MATLAB functions
63(8)
Projectile motion
63(2)
Some common functions
65(6)
Logical vectors
71(15)
Examples
72(3)
Discontinuous graphs
72(1)
Avoiding division by zero
73(1)
Avoiding infinity
74(1)
Counting random numbers
74(1)
Rolling dice
75(1)
Logical operators
75(3)
Operator precedence
76(1)
Danger
77(1)
Logical operators and vectors
77(1)
Subscripting with logical vectors
78(1)
Logical functions
79(2)
Using any and all
80(1)
Logical vectors instead of elseif ladders
81(5)
Matrices
86(16)
Some basics
86(12)
A concrete example
86(1)
Creating matrices
87(1)
Subscripts
88(1)
Transpose
88(1)
The colon operator
88(3)
Duplicating rows and columns: tiling
91(1)
Deleting rows and columns
92(1)
Elementary matrices
92(1)
Specialized matrices
93(1)
Using MATLAB functions with matrices
94(1)
Manipulating matrices
94(1)
Array (element-by-element) operations on matrices
95(1)
Matrices and for
95(1)
Visualization of matrices
96(1)
Vectorizing nested fors: loan repayment tables
96(2)
Multi-dimensional arrays
98(1)
Matrix operations
98(2)
Matrix multiplication
98(1)
Matrix exponentiation
99(1)
Other matrix functions
100(2)
Introduction to graphics
102(22)
Basic 2-D graphs
102(8)
Labels
103(1)
Multiple plots on the same axes
104(1)
Line styles, markers and colour
105(1)
Axis limits
105(1)
Multiple plots in a figure: subplot
106(1)
figure, clf and cla
107(1)
Graphical input
107(1)
Logarithmic plots
107(1)
Polar plots
108(1)
Plotting rapidly changing mathematical functions: fplot
108(1)
The property editor
109(1)
3-D plots
110(14)
plot3
110(1)
Animated 3-D plots with comet3
110(1)
Mesh surfaces
110(2)
Contour plots
112(1)
Cropping a surface with NaNs
113(1)
Visualizing vector fields
114(1)
Visualization of matrices
115(1)
Rotation of 3-D graphs
116(1)
Other cool graphics functions
116(8)
Loops
124(12)
Determinate repetition with for
124(2)
Binomial coefficient
124(1)
Update processes
125(1)
Nested fors
126(1)
Indeterminate repetition with while
126(10)
A guessing game
126(1)
The while statement
127(1)
Doubling time of an investment
128(1)
Prime numbers
129(1)
Projectile trajectory
129(2)
break and continue
131(1)
Menus
131(5)
Errors and pitfalls
136(6)
Syntax errors
136(2)
lasterr
138(1)
Pitfalls and surprises
138(1)
Incompatible vector sizes
138(1)
Name hiding
138(1)
Other pitfalls for the unwary
139(1)
Errors in logic
139(1)
Rounding error
139(1)
Trapping and generating errors
140(2)
Function M-files
142(15)
Some examples
142(2)
Inline objects: harmonic oscillators
142(1)
Function M-files: Newton's method again
143(1)
Basic rules
144(5)
Subfunctions
148(1)
Private functions
148(1)
P-code files
148(1)
Improving M-file performance with the profiler
149(1)
Function handles
149(1)
Command/function duality
150(1)
Function name resolution
151(1)
Debugging M-files
151(2)
Debugging a script
151(2)
Debugging a function
153(1)
Recursion
153(4)
Part II More Advanced Topics and Applications 157(110)
Vectors as arrays: working with subscripts
159(11)
Update processes
159(5)
Unit time steps
159(3)
Non-unit time steps
162(1)
Using a function
163(1)
Exact solution
164(1)
Frequencies, bar charts and histograms
164(2)
A random walk
164(1)
Histograms
165(1)
Sorting
166(4)
Bubble Sort
166(2)
MATLAB's sort
168(2)
Arrays of characters: strings
170(8)
Basic concepts
170(3)
Assignment
170(1)
Input
170(1)
Strings are arrays
171(1)
Concatenation of strings
171(1)
ASCII codes, double and char
171(1)
fprintfing strings
172(1)
Comparing strings
173(1)
Other string functions
173(1)
Two-dimensional strings
173(1)
eval and text macros
174(4)
Error trapping with eval and lasterr
175(1)
eval with try...catch
175(3)
Advanced data structures
178(6)
Structures
178(2)
Cell arrays
180(2)
Assigning data to cell arrays
180(1)
Accessing data in cell arrays
181(1)
Using cell arrays
181(1)
Displaying and visualizing cell arrays
182(1)
Classes and objects
182(2)
More graphics
184(14)
Handle Graphics
184(5)
Getting handles
184(1)
Graphics object properties and how to change them
185(2)
A vector of handles
187(1)
Graphics object creation functions
187(1)
Parenting
187(1)
Positioning figures
188(1)
Editing plots
189(1)
Plot edit mode
189(1)
Property Editor
189(1)
Animation
190(3)
Animation with Handle Graphics
191(2)
Colour etc.
193(2)
Colormaps
193(1)
Colour of surface plots
194(1)
Truecolor
195(1)
Lighting and camera
195(1)
Saving, printing and exporting graphs
196(2)
Saving and opening figure files
196(1)
Printing a graph
196(1)
Exporting a graph
196(2)
Graphical User Interfaces (GUIs)
198(9)
Basic structure of a GUI
198(1)
A first example: getting the time
199(3)
Exercise
202(1)
Newton again
202(2)
Axes on a GUI
204(1)
Adding colour to a button
205(2)
Importing and exporting data
207(7)
The load and save commands
207(1)
Exporting text (ASCII) data
207(1)
Importing text (ASCII) data
208(1)
Exporting binary data
208(1)
Importing binary data
208(1)
The Import Wizard
208(1)
Importing ASCII data
209(1)
Importing binary data
209(1)
Low-level file I/O functions
209(2)
Writing binary data
209(2)
Reading binary data
211(1)
Changing binary data
211(1)
Other import/export functions
211(3)
Simulation
214(10)
Random number generation
214(1)
Seeding rand
215(1)
Spinning coins
215(1)
Rolling dice
216(1)
Bacteria division
216(1)
A random walk
216(2)
Traffic flow
218(2)
Normal (Gaussian) random numbers
220(4)
More matrices
224(12)
Leslie matrices: population growth
224(3)
Markov processes
227(2)
A random walk
227(2)
Linear equations
229(4)
MATLAB's solution
229(1)
The residual
230(1)
Over-determined systems
230(1)
Under-determined systems
231(1)
Ill conditioning
231(1)
Matrix division
232(1)
Sparse matrices
233(3)
Introduction to numerical methods
236(31)
Equations
236(4)
Newton's method
236(2)
The Bisection method
238(2)
fzero
240(1)
roots
240(1)
Integration
240(2)
The Trapezoidal rule
240(1)
Simpson's rule
241(1)
quad
242(1)
Numerical differentiation
242(1)
diff
243(1)
First-order differential equations
243(4)
Euler's method
243(1)
Example: bacteria growth
244(2)
Alternative subscript notation
246(1)
A predictor-corrector method
246(1)
Linear ordinary differential equations (LODEs)
247(1)
Runge-Kutta methods
247(4)
A single differential equation
247(1)
Systems of differential equations: chaos
248(2)
Passing additional parameters to an ODE solver
250(1)
A GUI ODE solver: Driver
251(9)
How to use Driver
251(3)
How Driver works
254(2)
Future development of Driver
256(1)
Listing of the Driver application M-file
256(4)
A partial differential equation
260(2)
Heat conduction
260(2)
Other numerical methods
262(5)
Appendix A Syntax quick reference 267(4)
A.1 Expressions
267(1)
A.2 Function M-files
267(1)
A.3 Graphics
267(1)
A.4 if and switch
268(1)
A.5 for and while
268(1)
A.6 Input/output
269(1)
A.7 load/save
270(1)
A.8 Vectors and matrices
270(1)
Appendix B Operators 271(1)
Appendix C Command and function quick reference 272(7)
C.1 General purpose commands
273(1)
C.2 Logical functions
273(1)
C.3 Language constructs and debugging
274(1)
C.4 Matrices and matrix manipulation
274(1)
C.5 Mathematical functions
275(1)
C.6 Matrix functions
276(1)
C.7 Data analysis
276(1)
C.8 Polynomial functions
276(1)
C.9 Function functions
276(1)
C.10 Sparse matrix functions
276(1)
C.11 Character string functions
277(1)
C.12 File I/O functions
277(1)
C.13 Graphics
277(2)
Appendix D ASCII character codes 279(1)
Appendix E Solutions to selected exercises 280(11)
Index 291

Supplemental Materials

What is included with this book?

The New copy of this book will include any supplemental materials advertised. Please check the title of the book to determine if it should include any access cards, study guides, lab manuals, CDs, etc.

The Used, Rental and eBook copies of this book are not guaranteed to include any supplemental materials. Typically, only the book itself is included. This is true even if the title states it includes any access cards, study guides, lab manuals, CDs, etc.

Rewards Program