Chapter 39. matrix

Table of Contents

abs
adjoint
all
and
any
chol
col
columns
ctranspose
cumprod
cumsum
det
determinant
diag
eig
elementat
eq
eye
find
fliplr
flipud
floor
ge
gt
inf
inv
inversematrix
isempty
isfinite
isimaginary
isinf
isnan
isreal
ldivide
le
ln
log
lowertriangle
lt
lu
magic
max
min
minus
mldivide
mpower
mrdivide
mtimes
nan
ne
nnz
not
numel
ones
or
plus
pow2
power
prod
qr
rdivide
repmat
reshape
row
rows
simultaneouseq
sort
subassign
submatrix
sum
sumsq
svd
times
transpose
uminus
uplus
uppertriangle
xor
zeros

abs

Type: External

Group: matrix

Syntax

abs(value)

Description

Returns the absolute positive value of value.

Examples

abs(-5)     = 5
abs(2)      = 2
abs(3 + 4I) = 5

See Also

sign, angle