Index

Symbols

46, 153
%43
@, 
function handle creation, 171
&, 114
', 116, 130
.', 116
.*, 48
./, 48
., 48
.̂, 48
:, 9, 130
;, 7, 50
̃, 114
|, 114
π8
π˜Image192
estimation of, 292
3-D plot, 206

A

abs73, 100
acos100
acosh100
air resistance, 269
algebra, 356
algorithm, 84
all119, 137
example, 120
AND, 114
angle73
animation, 222
comet3207
ans35, 49
any119
example, 120
apostrophe, 130
argument, 
input, 93
input, pass by reference, 169
input, pass by value, 169
arithmetic operator, 46
array, 9, 34
2-D, 127
cell, 249
multi-dimensional, 142
Array Editor, 35
array operation, 48, 138
asin100
asinh100
aspect ratio, 73
assignment, 7
assignment statement, 50
atan100
atan273, 100
atanh100
axis200
equal, 73
normal, 73
axis limits, 200
azimuth, 213

B

bacteria division, 286
bacteria growth, 292, 305
balance delimiters, 53
bar graph, 243
base workspace, 167
best fit, 155
binomial coefficient, 181
Bisection method, 297
bit, 35
bitwise logical operations, 115
break184, 190
breakpoint, 175
Bubble Sort, 244
bug, 255
byte, 35

C

calculus, 356
calendar8
camel caps, 34
cantilever beam, 263
cartesian co-ordinates, 204
case72
case sensitivity, 34
ceil100
cell, 249, 250
cell array, 249
celldisp252
cellplot252
chaos, 223, 233, 310
butterfly, 312
trajectory, 312
cla203
clc8
clear35
clear M-file, 168
clf203
clipboard, 26
clock62, 101
colon operator, 9, 37, 130
colon operator, initialization, 37
colon operator, precedence, 47
color, 200
colorbar226
colormap225
comet3207
command, 50
command line, 7
command line editing, 7
Command Window, 5
command/function duality, 173
comment, 43
compiler, 29
complex conjugate transpose, 73
complex numbers, 72
condition estimator, 156
conj73
Contents.m167
context menu, 29
continuation of statement, 43, 50
continue190
contour210
contour plot, 23
contour3210
cos101
cosh101
cot101
Crank-Nicolson method, 315
csc101
cumsum101
current directory, 28
curve fitting, 320
cut and paste, 26

D

data types, 45
date8, 101
deal249
Debugger, 174
debugging, 255
degrees to radians, 8
del2227
delimiter highlighting, 53
demo12
determinate repetition, 181
diag138
diary41
dice, 114
diff303
differential equation, 304, 356
differentiation, 356
disp54
display, 
scale factor, 57
division, 
matrix, 156
dot product, 48
dot-transpose operator, 116
double45
double precision, 45
doubling time of an investment, 185
drawnow223

E

editing a plot, 220
eig146
eigenvalue, 148
eigenvector, 149
electrical circuit, 264
element-by-element operation, 48
ellipse, equation of, 232
ellipsis, 43, 50
elseif68
empty, 37
empty array, 120
end132
eps111
error, 
fatal, 255
logical, 256
rounding, 257
run-time, 174
syntax, 255
etime62
Euler's method, 304
exclusive OR, 115
exist119
exp101
explicit list, initializing vectors, 36
expm146, 308
exponent, 45
exponential, 
matrix, 308
exponential fit, 155
exponential growth, 305
exporting ASCII data, 
save, 104
exporting binary data, 
save, 105
expression, 44, 46, 49
ans, 49
display suppressed, 49
logical, 65, 114
eye135

F

factorial, 59
false109
fast Fourier transform, 325
feval171
Fibonacci numbers, 180
field, 247
fieldnames248
figure9, 203
figure window, 10, 202
find119
findobj218
finite difference scheme, 307, 314
fix101
fixed point, 45, 55
fliplr138
flipud138
floating-point, 45, 55
floor60, 101
for60
command line version, 61
index, 60
iteration count, 60
more general, 61
most general form, 139
nested, 140, 184
replaced by vectorization, 62
used for determinate loop, 191
format55, 56
formula, 
vectorization, 52
Fourier series, 193, 325
fplot205
fractal, 233
free fall problem, 264
frequency distribution, 243
full160
full matrix, 158
function, 50, 166
handle for passing as argument, 171
help, 166
MATLAB Function Reference, 100
name resolution, 174
P-code file, 170
private, 170
subfunction, 170
function functions, 173
function M-file, 163
function/command duality, 173
fzero299

G

Gauss reduction, 162
Gaussian random number, 291
gca215
gcf215
gco215
get216
Gibbs phenomenon, 194
ginput203
global167
gradient211, 212
graph, 9
easy-to-use commands, 198
graphics, 
2-D, 197
3-D, 206
3-D rotation, 213
axis limits, 200
contour plot, 209
cropping a surface, 211
editing, 220
editing a plot, 220
line type, 200
logarithmic plot, 203
mesh surface, 207
multiple plots, 199, 202
plotting symbol, 200
polar co-ordinates, 204
rapidly changing functions, 205
saving, 229
vector field, 211
grid199
gtext199, 242
guessing game, 184

H

H1 line, 166
Halley's comet, 233
handle, 
function, 171
graphics object, 214
Handle Graphics objects, 214
Harmonic analysis, 325
help
for a function, 166
Help Navigator, 99
helpwin99
hexadecimal, 56
hidden name, 174, 256
histogram, 243
hold199

I

i72
identity matrix, 135
if65
command line version, 64
elseif68
nested, 70
vectorized with logical vector, 121
if-else67
command line, 67
ill conditioning, 156, 161
imag73
importing ASCII data, 
load, 105
importing binary data, 
load, 106
inclusive OR, 115
indeterminate repetition, 181, 184
index of for60
Inf7
infinity, 7
initialization, colon operator, 37
initialization, explicit list, 36
inline object, 92
input argument, 93
integration, 356
interpolation, 301
interpreter, 29
inv146
isempty120
isglobal167
isinf120
isnan120
isothermal, 210
iteration count, 60

J

j72

K

Knuth, 188

L

least squares, 155
left division, 46, 153, 156
Legendre polynomial, 180
length102
Leslie matrix, 147
lighting, 228
limit of sequence, 59
line numbers, 174
line style, 200
linear equations, 
over-determined, 154
residual, 154
solution, 152
under-determined, 155
linspace38
list, 
sorting, 244
load105, 106
LODE, 308
log102
log10102
logarithmic plot, 203
logarithmic spiral, 231
logical error, 256
logical expression, 64, 65, 109, 114
vector, 110
logical function, 119
logical operator, 68, 114
precedence, 115
logical vector, 110
subscripting with, 118
loglog204
logspace38
lookfor166
loop, 
determinate, 181
indeterminate, 184
Lorenz, 310
Lotka-Volterra model, 313
lu146

M

M-file, 28
function, 163
function passed as argument, 171
magic square, 23, 137
mantissa, 45, 56
marker, 200
Markov chain, 150
MATLAB functions, 92
matrix, 36, 40, 127
array operation, 138
creating, 129
deleting rows and columns, 134
duplicating rows and columns, 133
enlarging, 130
full, 158
Leslie, 147
multiplication, 143
plot, 197
sparse, 158
subscript, 129
transpose, 40, 130
visualization, 212
matrix division, 156
matrix exponential, 308
matrix exponentiation, 145
matrix multiplication, 143
matrix operation, 143
matrix operations, 48
max102, 246
mean102
mechanical system, 337
menu190
mesh208
mesh surface, 207
meshc210
meshgrid207
Mexican hat, 23
min102, 246
mlock168
Monte Carlo estimation of π292
more55, 188
multi-dimensional array, 142
multiple lines in Command Window, 27
multiple plots, 202
multiple plots on same axes, 199
munlock168

N

name hiding, 174, 256
NaN7
nargin170
nargout170
nested for140
nested fors, 184
nested ifs, 70
Newton quotient, 179, 258, 302
Newton's method, 58, 163
Newton's method in general, 295
normally distributed random number, 291
NOT, 114
not-a-number, 7
num2str55
number, 45
numerical differentiation, 302
numerical integration, 300
numerical method, 295
Bisection method, 297
differential equation, 304
differentiation, 302
Euler's method, 304
integration, 300
Newton quotient, 302
Newton's method, 295
partial differential equation, 314
predictor-corrector, 307
Runge-Kutta method, 309
Simpson's rule, 301
solution of equations, 295
Trapezoidal rule, 300
numerical solution of differential equations, 304
numerical solution of equations, 295

O

object, 252
Handle Graphics, 214
object-oriented programming, 252
ones135
operand, 46
operation, 
array, 48
element-by element, 48
matrix, 143
operator, 
arithmetic, 46
colon, 130
dot-transpose, 116
left division, 153
logical, 68, 114
precedence, 46, 116
relational, 65
transpose, 116
operator precedence, complete list, 116, 181
OR, 114
exclusive, 115
oscillator, 337
output, 54
paging, 55
suppressed with semicolon, 50
output argument, 165
over-determined system, 154

P

P-code file, 170
paging, 188
paging output, 55
partial differential equation, 314
pascal136
pause213
pcode170
persistent variable, 167
pi8
plot197
3-D version, 206
logarithmic scale, 203
polar co-ordinates, 204
plot edit mode, 220
plot3206
plotedit220
plotyy199
Poisson process, 288
polar204
polar co-ordinates, 204
polynomial fitting, 320
pow2102
pre-allocation, 237
precedence, 116
arithmetic operators, 46
colon operator, 47
logical operator, 115
transpose, 47
precedence of operators, complete list, 116
predator-prey model, 313
predictor-corrector method, 307
prime number, 
largest known, 188
test, 187
private function, 170
prod102
Profiler, 171
program, 25
projectile problem, 264
projectile trajectory, 188
Property Editor, 206
pseudo-code, 41
pseudo-random number, 102

Q

qr146
quad302
quadrature, 302
quiver211
quote in string, 54

R

radio-active decay, 294
RAM, 29
rand102, 113, 135, 283
seeding, 284
uniform, 283
randn291
random access memory, 29
random number, 39, 113
generation, 283
normal, 291
uniform, 283
random numbers, 
counting, 113
random walk, 150, 243, 286
rat56
real73
realmax45, 102
realmin45, 102
recall, 
smart, 7
recursion, 177
redimensioning, 238
reference, pass by, 169
relational operator, 65
relative accuracy, 45
rem102
removing element of vector, 119
removing elements of an array, 39
repmat133
reshape133
reshaping a matrix, 132
residual, 154
right division, 156
rmfield249
rolling a dice, 285
rolling dice, 114
root of an equation, 295
roots299
rot90138
rounding error, 257, 302
run-time error, 174
Runge-Kutta method, 309

S

save104, 105
saving a file, 27
saving a graph, 229
scalar, 9
scalar expansion, 48
scalar product, 48
scientific notation, 45
display, 56
scope, 167
script, 28
recommended way to run, 29
script file, 28
seeding rand284
semi-colon, 7
semilogx204
semilogy203
sensitivity analysis, 161
separator, 50
series for π192
set216
Simpson's rule, 301
simulation, 114, 243
bacteria division, 286
bacteria growth, 292
estimation of π292
game of eights, 293
radio-active decay, 294
random walk, 286
rolling a dice, 285
spinning coins, 284
traffic flow, 288
single-precision, 45
size35
smart indenting, 61
smart recall, 7
sort244, 246
sort, bubble, 244
sound183
sparse158, 159, 316
sparse matrix, 158, 316
spinning coins, 284
spiral, 
Archimedes, 231
logarithmic, 231
spring, mass damper model, 337
sprintf242
spy160, 213
sqrt8
stable age distribution, 149
statement, 7, 50
assignment, 50
continuation, 50
string, 54
containing quote, 54
struct248
structure, 247
structure plan, 27, 41
subfunction, 170
subplot202
subscript, 39, 129
logical vectors, 118
vector, 118
subscript out of range, 130
subscripting with logical vectors, 118
sunflower head, 232
surf208
surfc210
svd146
switch71
symbolic mathematical, 355
syntax error, 255

T

tab completion, 11
Taylor series, 
exponential, 179
terminal speed, 270
TeX characters, 220
text199
tic62
tiling, 134
title199
toc62
top down programming, 42
traffic flow, 288
transpose, 39, 40, 130
complex conjugate, 73
transpose operator, 116
transpose operator, highest precedence, 47
Trapezoidal rule, 300
tridiagonal matrix, 315
trigonometry, 356
tril138
triu138
true109
truecolor228
truncation error, 320
type28

U

under-determined system, 155
uniformly distributed random number, 283
update process, 235

V

value, pass by, 169
Van der Pol's equation, 322
varargin170, 251
varargout251
variable, 7, 29, 33
global, 167
persistent, 167
scope, 167
termed arrays by MATLAB, 34
vector, 9, 36
colon operator, 37
explicit list, 36
incompatible sizes, 256
pre-allocation, 237
redimensioning, 238
removing element, 119
scalar product, 48
subscript, 39, 118
transpose, 39
vectorization, 52
instead of for62
view213
visualization of matrix, 212

W

while185
command line form, 185
used for indeterminate loop, 192
vector condition, 185
who35
whos35
why25
workspace, 34
base, 167
function, 167
Workspace Browser, 35

X

xlabel199
xor115

Y

ylabel199

Z

zero of a function, 295
zeros135
zlabel207
zoom321
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.82.154