This page intentionally left blank
MATLAB
®
An Introduction
with Applications
This page intentionally left blank
MATLAB
®
An Introduction
with Applications
Fourth Edition
Amos Gilat
Department of Mechanical Engineering
The Ohio State University
JOHN WILEY & SONS, INC.
417
Index
reshape, 49, 396
right division, 71
roots, 263, 399
Rotation, 147
round, 15, 395
S
save, 111, 396
saving the workspace, 111
scatter3, 332, 397
script file
creating, 21
input to, 97–100
output from, 100–110
running, 22
saving, 22
script file, 20
semicolon, 10, 17
semilogx, 149, 397
semilogy, 149, 397
sign, 16, 395
simple, 357, 400
simplify, 356, 400
sin, 15, 395
sinh, 15, 395
size, 49, 396
solve, 358, 400
sort, 76, 396
sphere, 331, 397
sqrt, 14, 395
stairs, 153, 397
std, 77, 396
stem, 153, 397
stem3, 332, 397
stopping indefinite loop, 196
string, input, 100
strings, 53–55
subfunctions, 240
subplot, 157, 398
subs, 372, 400
subscript, 146
sum, 76, 396
superscript, 146
surf, 327, 329, 397
surfc, 329, 397
surfl, 330, 398
switch, 187, 399
switch-case statement, 187
sym, 348, 400
symbolic math
default variable, 353
differential equation solution, 367
differentiation, 363
equation solving, 358
expression, 350
integration, 365
numerical calculations with, 372
object, 348
plotting expression, 369
variable, 349, 350
syms, 350, 400
T
table, display, 86, 102
tan, 15, 395
tanh, 15, 395
text modifiers, 146
text, 145, 398
title, 144, 398
transpose operator, 41
trapz, 302, 398
truth table, 181
U
uiimport, 116, 396
V
variable
defining, matrix, 39–41
defining, scalar, 16
defining, vector, 36–38
global, 225
local, 224
name, 18
predefined, 18
vector
adding elements, 46
constant spacing, 37, 38
creating, 36
deleting elements, 48
418
Index
vectorization, 75
view, 333, 398
W
waterfall, 330, 398
while, 195, 399
who, 19, 96, 394
whos, 19, 96, 394
Workspace Window, 97
workspace, 96
X
xlabel, 144, 398
xlsread, 114, 396
xlswrite, 115, 397
xor, 180, 399
Y
ylabel, 144, 398
Z
zeros, 40, 396