Special Functions in MATLAB
Posted on Dec 04, 2012 in Computer Science
Things under legendu.net/outdated are outdated technologies that the author does not plan to update any more. Please look for better alternatives.
-
sin
calculates sine of arguments in radian whilesind
calculates sine of arguments in degrees;asin
calculates inverse of sine resulting in radian whileasind
calculates inverse of sine resulting in degrees. Other triangular functions behave similarly. -
The modified Bessel function of the first kind
$I_n(x)$
is implemented asbesseli
in MATLAB. Notice that for large valuex
,$I_n(x)$
is huge, so it is better to use scaled Bessel function for largex
. To do this, you just need specify an extra argument forbesseli
. Notice that other kind of Bessel functions are also implemented in MATLAB. -
Incomplete Beta function is implemented as
betainc
and incomplete Gamma function is implemented asgammainc
in MATLAB. -
The logarithm of Gamma function is implemented as
gammaln
and the logarithm of Beta function is implemented asbetaln
in MATLAB. -
cart2sph, cart2pol, pol2crt, sph2cart, hsv2rgb
andrgb2hsv
can transform coordinates between different coordinate systems. -
mfun
can help evaluate special mathematica functions numerically, but you should be aware of the fact that the result return by callingmfun
is not as accurate as invoking these special function directly in MATLAB, especially when a function is near its root and its arguments are relatively large. Alsomfunlist
can list special functions for use withmfun
.