F.6User-defined functions 353
Function Purpose
abs Absolute value
acos Inverse cosine
acosh Inverse hyperbolic cosine
acot Inverse cotangent
acoth Inverse hyperbolic cotangent
acsc Inverse cosecant
acsch Inverse hyperbolic cosecant
angle Phase angle
asec Inverse secant
asech Inverse hyperbolic secant
asin Inverse sine
asinh Inverse hyperbolic sine
atan Inverse tangent
atan2 Four quadrant inverse tangent
atanh Inverse hyperbolic tangent
ceil Round toward plus infinity.
cart2pol Cartesian-to-polar coordinate conversion
cart2sph Cartesian-to-spherical coordinate conversion
conj Complex conjugate
cos Cosine
cosh Hyperbolic cosine
cot Cotangent
coth Hyperbolic cotangent
csc Cosecant
csch Hyperbolic cosecant
exp Exponential
expm Matrix exponential
fix Round toward zero
floor Round toward minus infinity
gcd Greatest common divisor
imag Complex imaginary part
lcm Least common multiple
log Natural logarithm
log10 Common logarithm
pol2cart Polar-to-Cartesian coordinate conversion
real Real part
rem Remainder after division
round Round toward the nearest integer
Table F.5.1Common and specializedMatlabmathematical functions. Contin-
ued on next page.