Using the C Math Library    

Elementary Matrices and Matrix Manipulation

Elementary Matrices 
Function
Purpose
mlfEye
Identity matrix.
mlfOnes
Matrix of ones (1s).
mlfRand
Uniformly distributed random numbers.
mlfRandn
Normally distributed random numbers.
mlfZeros
Matrix of zeros (0s).

Basic Array Information 
Function
Purpose
mlfDisp
Display text or array.
mlfIsempty
True for empty array.
mlfIsequal
True for input arrays of the same type, size, and contents.
mlfIslogical
True for logical arrays.
mlfLength
Length of vector.
mlfLogical
Convert numeric values to logical.
mlfNdims
Number of dimensions.
mlfSize
Size of array.

Special Constants 
Function
Purpose
mlfComputer
Computer type.
mlfEps
Floating-point relative accuracy.
mlfFlops
Floating-point operation count. (Not reliable in stand-alone applications.)
mlfI
Return an array with the value 0+1.0i.
mlfInf
Infinity.
mlfJ
Return an array with the value 0+1.0i.
mlfNan
Not-a-Number.
mlfPi
3.1415926535897....
mlfRealmax
Largest floating-point number.
mlfRealmin
Smallest floating-point number.

Matrix Manipulation 
Function
Purpose
mlfDiag
Create or extract diagonals.
mlfPermute
Permute array dimensions.
mlfTril
Extract lower triangular part.
mlfTriu
Extract upper triangular part.

Specialized Matrices 
Function
Purpose
mlfMagic
Magic square.


 Operators and Special Functions Elementary Math Functions