Numeric evaluation of special mathematical function

mfun will be removed in a future release. Instead, use the appropriate special function syntax listed in mfunlist. For example, use bernoulli(n) instead of mfun('bernoulli',n).




mfun('function',par1,par2,par3,par4) numerically evaluates one of the special mathematical functions listed in mfunlist. Each par argument is a numeric quantity corresponding to a parameter for function. You can use up to four parameters. The last parameter specified can be a matrix, usually corresponding to X. The dimensions of all other parameters depend on the specifications for function. You can access parameter information for mfun functions in mfunlist.

MuPAD® software evaluates function using 16-digit accuracy. Each element of the result is a MATLAB® numeric quantity. Any singularity in function is returned as NaN.

See Also

Introduced before R2006a

Was this topic helpful?