Elementary Math Commands abs Returns the absolute value of a scalar/matrix/complex number. angle Returns the phase angle of z equal to atan2(imag(z), real(z)). bin2dec Converts a string, matrix or cell array, s, representing binary number(s) to decimal equivalent(s). cart2pol Converts Cartesian coordinates to polar or cylindrical. cart2sph Converts Cartesian coordinates to spherical. ceil Returns the smallest integer that is greater than or equal to x. complex Returns a complex number composed of real elements. cplxpair Sorts x into its ascending pairs by real part. cumprod The cumulative product of object's elements along a specified dimension. cumsum The cumulative sum of an object's elements along a specified dimension. dec2bin Converts a non-negative integer, matrix or cell array, n, to it's binary equivalent. dec2hex Converts a non-negative integer, matrix or cell array, n, to it's hexadecimal equivalent. diag Creates a diagonal matrix or returns the diagonal elements of a matrix on diagonal k. diff Returns a vector or matrix of differences. double Converts A into double precision type. e Symbol for the base of the natural logarithm. eps The spacing between two adjacent numbers in a given machine's floating point system, Epsilon. exp For each element of x, returns e^x. eye Returns an identity matrix. factor Returns the prime factorization of X. If two outputs are requested, returns the unique primes of X. find Returns the position of non-zero elements in a matrix. If two returns are requested find returns the row and column indices of nonzero elements of a matrix. fix Rounds X down to zero. flip Returns R, which is the matrix, m, flipped along the axis, a. fliplr Returns R, which is the matrix, m, with its columns flipped left to right. flipud Returns R, which is the matrix, m, with its rows flipped from top to bottom. floor Returns the largest integer that is not greater than x. gcd Returns the greatest common deviser of the set x. hex2dec Converts a string, matrix or cell array, s, representing hexadecimal number(s) to decimal equivalent(s). i The imaginary number i, such that i^2 = -1 imag Returns the imaginary component of a complex number. ind2sub Returns subscript from the linear index ind. intersect Returns the elements in both a and b. isbool Determines if x is a logical value. iscomplex Determines if x is a complex value. isempty Determines if x is an empty value. isequal Compares x1,x2,... to each other; if all are equal, returns boolean value true, otherwise returns false. isglobal Returns a logical indicating whether the input is global in scope. islogical Determines if x is a logical value. ismember Returns a logical matrix with the same shape as x where bool(i,j) is 1 (true) if x(i,j) is equal to s. isprime Determines if x is a prime number. isreal Determines if x is a real number. issorted Returns true if the array x sorted by mode. By default mode is ascending. isvector Determines if x is a vector. j The imaginary number i, such that i^2 = -1. length Returns the length of an object's largest dimension. log Computes the natural log for each element of x. log2 Computes the base-2 logarithm of a matrix. log10 Computes the base-10 logarithm for each element of x. logical Converts x to a logical type. max Returns the maximum value of matrix. mean Returns the mean of X. When x is a matrix the mean for each column and returns them in a row vector. min Returns the minimum value of a matrix. mod Returns x modulo y. ndims Returns the number of dimensions of an array. numel Returns the number of elements in x. ones Returns a matrix of ones. permute Generalized transpose of a matrix, using a permutation vector. pi Symbol for pi. pol2cart Converts polar or cylindrical coordinates to Cartesian. pow2 Computes powers of 2. primes Returns all primes up to X. prod Takes the product of elements along dimension dim. rank Computes the rank of matrix A. real Returns the real part of x. realmax Returns a matrix whose elements are all the largest floating point number that is representable. realmin Returns a matrix whose elements are all the smallest normalized floating point number that is representable. rem The resulting remainder of x / y. repmat Replicates an input to create a block matrix with the number of specified replications in each dimension. reshape Returns a matrix with the same elements as the input, but with reassigned dimensions. rot90 Returns R, the result of rotating matrix, m, in 90-degree succession(s). round Returns nearest integer to x. setdiff Returns a matrix of the elements in matrix that are not in another specified matrix. setxor Returns the elements exclusive to a or b. sign Returns the sign of the value passed in. size Returns the size of each dimension of an object. sph2cart Converts spherical coordinates to Cartesian. sqrt Returns the square root of each element of x. squeeze Removes singular dimensions from a matrix. sub2ind Converts subscript to a linear index. From dimensions x and index i,j. sum Sums up the elements within the input A, along the dimension d (if d is given). union Returns the elements that are in matrices x and y. If 'rows' is provided then each row will be considered its on set. unique Returns the unique elements in the input x zeros Creates a matrix of zeros.