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

  • fft - Forward FFT (unit tested)
  • fft2 - Forward 2-D FFT (unit tested)
  • ifft - Inverse FFT (unit tested)

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

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

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

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

  • prod - Product Along Dimension
  • sum - Sum Along Dimension
  • triu - Upper Triangle

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 Analysis

  • trace - Extract Matrix Diagonal

Linear Equations

  • inv - Inverse of Square Matrix

Specialized matrices

  • magic - Generate Magic Square

Functions to be implemented

For a list of functions that are being implemented, please refer to the Issue Tracker and filter the results on the component "Functions".

Last edited May 7, 2011 at 6:03 PM by jaorme, version 20

Comments

No comments yet.