New developer? See the Developer's Getting Started Guide.
Function Reference
Fully tested functions
This section lists all the functions that have been tested against MATLAB(R) functions and verified to produce the same output:Untested functions
This section lists the functions that have been implemented and tested informally. Functions listed here may not produce the same results as the same functions in MATLAB(R):Fourier transforms
Trigonometric
- acos - Inverse Cosine
- acosd - Inverse Cosine (result in degrees)
- acosh - Inverse Hyperbolic Cosine
- acot - Inverse Cotangent
- acotd - Inverse Cotangent (result in degrees)
- acoth - Inverse Hyperbolic Cotangent
- acsc - Inverse Cosecant
- acscd - Inverse Cosecant (result in degrees)
- acsch - Inverse Hyperbolic Cosecant
- asec - Inverse Secant
- asecd - Inverse Secant (result in degrees)
- asech - Inverse Hyperbolic Secant
- asin - Inverse Sine
- asind - Inverse Sine (result in degrees)
- asinh - Inverse Hyperbolic Sine
- atan - Inverse Tangent
- atan2 - Four Quadrant Inverse Tangent
- atand - Inverse Tangent (result in degrees)
- atanh - Inverse Hyperbolic Tangent
- cos - Cosine
- cosd - Cosine (argument in degrees)
- cosh - Hyperbolic Cosine
- cot - Cotangent
- cotd - Cotangent (argument in degrees)
- coth - Hyperbolic Cotangent
- csc - Cosecant
- cscd - Cosecant (argument in degrees)
- csch - Hyperbolic Cosecant
- hypot - Length of hypotenuse given perpendicular sides
- sec - Secant
- secd - Secant (argument in degrees)
- sech - Hyperbolic Secant
- sin - Sine
- sind - Sine (argument in degrees)
- sinh - Hyperbolic Sine
- tan - Tangent
- tand - Tangent (argument in degrees)
- tanh - Hyperbolic Tangent
Exponential
- exp - Exponent
- expm1 - Calculate exp(x) - 1 for small values of x
- log - Natural Logarithm
- log10 - Logarithm Base-10
- log1p - Calculate log(x + 1) for small values of x
- log2 - Logarithm Base-2
- nextpow2 - Next Power of 2
- nthroot - Nth Root
- pow2 - Power of 2
- power - Power
- reallog - Real Logarithm
- realpow - Real Power
- realsqrt - Real Square Root
- sqrt - Square Root
Complex
- abs - Absolute Value or Complex Magnitude
- angle - Phase Angle
- complex - Construct Complex Number
- conj - Complex Conjugate
- i - Imaginary Unit
- imag - Imaginary Part
- isreal - Test for Real Number
- j - Imaginary Unit
- real - Real Part
- sign - Sign of Argument
- unwrap Unwrap Phase Angles
Rounding and Remainder
- ceil - Ceiling
- fix - Fix
- floor - Floor
- idivide - Integer Division
- mod - Modulus
- rem - Remainder
- round - Round
Discrete Math
- factor - Calculate Prime Factors of Integer
- factorial - Factorial
- gcd - Greatest Common Divisor
- isprime - Test for Prime Numbers
- lcm - Lowest Common Multiple
- nchoosek - Binomial Coefficient or All Combinations
- perms - Permutations
- primes - Generate Prime Numbers
- rat - Fractional Approximation to Real Number
- rats - Display Continued Fraction Approximating Real Number
Basic Information
- disp - Display Text or Array
- display - Display Text or Array
- iscolumn - Test for Column Vector
- isempty - Test for Empty Array
- isequal - Test for Equality
- isequalwithequalnans - Test for Equality (treat NaNs as equal)
- isfinite - Test for Finite Values
- isfloat - Test for Floating Point Values
- isinf - Test for Infinity
- isinteger - Test for Integer Values
- islogical - Test for Logical Values
- ismatrix - Test for Matrix
- isnan - Test for NaNs
- isrow - Test for Row Vector
- isscalar - Test for Scalar
- length - Vector Length
- max - Maximum Value
- min - Minimum Value
- ndims - Number of Dimensions
- numel - Number of Elements
- size - Array Size
Math Constants
- eps - Floating Point Relative Precision (Epsilon)
- intmax - Maximum Integer Value
- intmin - Minimum Integer Value
- NaN - Not-a-Number Value
- pi - Value of PI
- realmax - Maximum Real Value
- realmin - Minimum Real Value
Elementary Matrices and Arrays
- blkdiag - Construct Diagonal Matrix
- diag - Diagonal Matrix and Diagonal of Matrix
- eye - Identity Matrix
- ind2sub - Convert Index to Subscript (unit tested)
- linspace - Linearly Spaced Vectors
- logspace - Logarithmically Spaced Vectors
- meshgrid - Generate mesh grid
- ones - Generate Matrix Containing All 1s
- rand - Generate Pseudo-Random Numbers
- sub2ind - Convert Subscript to Index (unit tested)
- zeros - Generate Matrix Containing All 0s
Array Operations
Array Manipulation
- cat - Concatenate Matrices Along Dimension
- horzcat - Concatenate Matrices Horizontally
- repmat - Replicate and Tile Matrices
- reshape - Reshape Array
- shiftdim - Shift Dimension
- sort - Sort Elements
- vertcat - Concatenate Matrices Vertically
Matrix Operations
Matrix Analysis
- trace - Extract Matrix Diagonal
Linear Equations
- inv - Inverse of Square Matrix
Specialized matrices
- magic - Generate Magic Square