Products & Services Solutions Academia Support User Community Company

Embedded MATLAB Function Library Reference

About Embedded MATLAB Library Functions

Each Embedded MATLAB library function has the same name, arguments, and functionality as its MATLAB, Fixed-Point Toolbox, or Signal Processing Toolbox™ counterparts. However, Embedded MATLAB library functions come with limitations that allow Embedded MATLAB to generate efficient embeddable code. By using this set of functions when programming in the Embedded MATLAB language subset, you can generate code for building a portable, standalone, executable target.

Embedded MATLAB Function Library — Alphabetical List

This topic lists the MATLAB functions supported by the Embedded MATLAB subset in alphabetical order. See also Embedded MATLAB Function Library — Categorical List.

Function

Product

Remarks/Limitations

abs

MATLAB

abs

Fixed-Point Toolbox

acos

MATLAB

  • Generates an error during simulation and returns NaN for Real-Time Workshop targets when the input value x is real, but the output should be complex. To get the complex result, make the input value complex by passing in complex(x).

acosd

MATLAB

acosh

MATLAB

  • Generates an error during simulation and returns NaN for Real-Time Workshop targets when the input value x is real, but the output should be complex. To get the complex result, make the input value complex by passing in complex(x).

acot

MATLAB

acotd

MATLAB

acoth

MATLAB

acsc

MATLAB

acscd

MATLAB

acsch

MATLAB

add

Fixed-Point Toolbox

all

MATLAB

all

Fixed-Point Toolbox

and

MATLAB

angle

MATLAB

any

MATLAB

any

Fixed-Point Toolbox

asec

MATLAB

asecd

MATLAB

asech

MATLAB

asin

MATLAB

  • Generates an error during simulation and returns NaN for Real-Time Workshop targets when the input value x is real, but the output should be complex. To get the complex result, make the input value complex by passing in complex(x).

asind

MATLAB

asinh

MATLAB

assert

MATLAB

  • Generates specified error messages at compile time only if all input arguments are constants or depend on constants. Otherwise, generates specified error messages at run time.

atan

MATLAB

atan2

MATLAB

atand

MATLAB

atanh

MATLAB

  • Generates an error during simulation and returns NaN for Real-Time Workshop targets when the input value x is real, but the output should be complex. To get the complex result, make the input value complex by passing in complex(x).

barthannwin

Signal Processing Toolbox

  • Inputs must be constant

  • Requires Signal Processing Blockset™ license to generate code.

bartlett

Signal Processing Toolbox

  • Inputs must be constant

  • Requires Signal Processing Blockset license to generate code.

beta

MATLAB

betainc

MATLAB

betaln

MATLAB

bin2dec

MATLAB

bitand

MATLAB

  • Does not support floating-point inputs. The arguments must belong to an integer class.

bitand

Fixed-Point Toolbox

  • Not supported for slope-bias scaled fi objects.

bitandreduce

Fixed-Point Toolbox

bitcmp

MATLAB

  • Does not support floating-point input for the first argument. The first argument must belong to an integer class.

bitcmp

Fixed-Point Toolbox

bitconcat

Fixed-Point Toolbox

bitget

MATLAB

bitget

Fixed-Point Toolbox

bitmax

MATLAB

bitor

MATLAB

  • Does not support floating-point inputs. The arguments must belong to an integer class.

bitor

Fixed-Point Toolbox

  • Not supported for slope-bias scaled fi objects.

bitorreduce

Fixed-Point Toolbox

bitreplicate

Fixed-Point Toolbox

bitrevorder

Signal Processing Toolbox

  • Computation performed at run time.

  • Requires Signal Processing Blockset license to generate code.

bitrol

Fixed-Point Toolbox

bitror

Fixed-Point Toolbox

bitset

MATLAB

  • Does not support floating-point input for the first argument. The first argument must belong to an integer class.

bitset

Fixed-Point Toolbox

bitshift

MATLAB

  • Does not support floating-point input for the first argument. The first argument must belong to an integer class.

bitshift

Fixed-Point Toolbox

bitsliceget

Fixed-Point Toolbox

bitsll

Fixed-Point Toolbox

bitsra

Fixed-Point Toolbox

bitsrl

Fixed-Point Toolbox

bitxor

MATLAB

  • Does not support floating-point inputs. The arguments must belong to an integer class.

bitxor

Fixed-Point Toolbox

  • Not supported for slope-bias scaled fi objects.

bitxorreduce

Fixed-Point Toolbox

blackman

Signal Processing Toolbox

  • Inputs must be constant

  • Requires Signal Processing Blockset license to generate code.

blackmanharris

Signal Processing Toolbox

  • Inputs must be constant

  • Requires Signal Processing Blockset license to generate code.

blanks

MATLAB

bohmanwin

Signal Processing Toolbox

  • Inputs must be constant

  • Requires Signal Processing Blockset license to generate code.

bsxfun

MATLAB

butter

Signal Processing Toolbox

  • Inputs must be constant

  • Requires Signal Processing Blockset license to generate code.

cart2pol

MATLAB

cart2sph

MATLAB

cast

MATLAB

cat

MATLAB

ceil

MATLAB

ceil

Fixed-Point Toolbox

cfirpm

Signal Processing Toolbox

  • Inputs must be constant.

  • Requires Signal Processing Blockset license to generate code.

char

MATLAB

chebwin

Signal Processing Toolbox

  • Inputs must be constant

  • Requires Signal Processing Blockset license to generate code.

cheby1

Signal Processing Toolbox

  • Inputs must be constant

  • Requires Signal Processing Blockset license to generate code.

cheby2

Signal Processing Toolbox

  • Inputs must be constant

  • Requires Signal Processing Blockset license to generate code.

chol

MATLAB

  • Does not allow two output arguments.

circshift

MATLAB

class

MATLAB

compan

MATLAB

complex

MATLAB

complex

Fixed-Point Toolbox

condMATLAB

conj

MATLAB

conj

Fixed-Point Toolbox

conv

MATLAB

conv

Fixed-Point Toolbox

  • Variable-sized inputs are only supported when the SumMode property of the governing fimath is set to Specify precision or Keep LSB.

  • For variable-sized signals, you may see different results between the Embedded MATLAB subset and MATLAB.

    • In the Embedded MATLAB subset, the output for variable-sized signals is always computed using the SumMode property of the governing fimath.

    • In MATLAB, the output for variable-sized signals is computed using the SumMode property of the governing fimath when both inputs are non-scalar. However, if either input is a scalar, MATLAB computes the output using the ProductMode of the governing fimath.

conv2

MATLAB

convergent

Fixed-Point Toolbox

cos

MATLAB

cosd

MATLAB

cosh

MATLAB

cot

MATLAB

cotd

MATLAB

coth

MATLAB

cov

MATLAB

cross

MATLAB

  • If supplied, dim must be a constant.

csc

MATLAB

cscd

MATLAB

csch

MATLAB

ctranspose

MATLAB

ctranspose

Fixed-Point Toolbox

cumprod

MATLAB

cumsum

MATLAB

cumtrapz

MATLAB

deconv

MATLAB

det

MATLAB

detrend

MATLAB

  • If supplied and not empty, the input argument bp must satisfy the following requirements:

    • Be real

    • Be sorted in ascending order

    • Restrict elements to integers in the interval [1, n-2], where n is the number of elements in a column of input argument X , or the number of elements in X when X is a row vector

    • Contain all unique values

diag

MATLAB

  • If supplied, the argument representing the order of the diagonal matrix must be a real and scalar integer value.

diag

Fixed-Point Toolbox

  • If supplied, the index, k, must be a real and scalar integer value that is not a fi object.

diff

MATLAB

  • If supplied, the arguments representing the number of times to apply diff and the dimension along which to calculate the difference must be constants.

disp

Fixed-Point Toolbox

divide

Fixed-Point Toolbox

  • Any non-fi input must be constant; that is, its value must be known at compile time so that it can be cast to a fi object.

  • Complex and imaginary divisors are not supported.

dot

MATLAB

double

MATLAB

double

Fixed-Point Toolbox

dpss

Signal Processing Toolbox

  • Inputs must be constant

  • Requires Signal Processing Blockset license to generate code.

eig

MATLAB

  • QZ algorithm used in all cases. Consequently, for the standard eigenvalue problem (B identity), results will be similar to those obtained using the following code in MATLAB:

    [V,D] = eig(A,eye(size(A)),'qz')

    However, V may represent a different basis of eigenvectors, and the eigenvalues in D may not be in the same order.

  • Options 'balance', 'nobalance', and 'chol' are not supported.

  • Outputs are always of complex type.

ellip

Signal Processing Toolbox

  • Inputs must be constant

  • Requires Signal Processing Blockset license to generate code.

ellipke

MATLAB

end

Fixed-Point Toolbox

eps

MATLAB

eps

Fixed-Point Toolbox

  • Supported for scalar fixed-point signals only.

  • Supported for scalar, vector, and matrix, fi single and fi double signals.

eq

MATLAB

eq

Fixed-Point Toolbox

  • Not supported for fixed-point signals with different biases.

erf

MATLAB

erfc

MATLAB

erfcinv

MATLAB

erfcx

MATLAB

erfinv

MATLAB

error

MATLAB

  • This is an extrinsic call.

exp

MATLAB

expint

MATLAB

expm

MATLAB

expm1

MATLAB

eye

MATLAB

  • Dimensions must be real, nonnegative, integer constants.

factorial

MATLAB

false

MATLAB

  • Dimensions must be real, nonnegative, integer constants.

fft

MATLAB

  • Length of input vector must be a power of 2.

fft2

MATLAB

  • Length of input matrix dimensions must each be a power of 2.

fftshift

MATLAB

fi

Fixed-Point Toolbox

  • Use to create a fixed-point constant or variable.

  • The default constructor syntax without any input arguments is not supported.

  • The syntax fi('PropertyName',PropertyValue...) is not supported. To use property name/property value pairs, you must first specify the value v of the fi object as in fi(v,'PropertyName',PropertyValue...).

  • Works for all input values when complete numerictype information of the fi object is provided.

  • Works only for constant input values (value of input must be known at compile time) when complete numerictype information of the fi object is not specified.

  • numerictype object information must be available for non-fixed-point Simulink inputs.

filter

MATLAB

filter2

MATLAB

fimath

Fixed-Point Toolbox

  • Fixed-point signals coming in to an Embedded MATLAB Function block from Simulink are assigned the fimath object defined in the Embedded MATLAB Function dialog in the Model Explorer.

  • Use to create fimath objects in Embedded MATLAB code.

find

MATLAB

fir1

Signal Processing Toolbox

  • Inputs must be constant

  • Requires Signal Processing Blockset license to generate code.

fir2

Signal Processing Toolbox

  • Inputs must be constant

  • Requires Signal Processing Blockset license to generate code.

fircls

Signal Processing Toolbox

  • Inputs must be constant

  • Requires Signal Processing Blockset license to generate code.

fircls1

Signal Processing Toolbox

  • Inputs must be constant

  • Requires Signal Processing Blockset license to generate code.

firls

Signal Processing Toolbox

  • Inputs must be constant

  • Requires Signal Processing Blockset license to generate code.

firpm

Signal Processing Toolbox

  • Inputs must be constant

  • Requires Signal Processing Blockset license to generate code.

firpmord

Signal Processing Toolbox

  • Inputs must be constant

  • Requires Signal Processing Blockset license to generate code.

firrcos

Signal Processing Toolbox

  • Inputs must be constant

  • Requires Signal Processing Blockset license to generate code.

fix

MATLAB

fix

Fixed-Point Toolbox

fft2

MATLAB

  • Dimensions 1 and 2 of the input matrix must have power of two length

flattopwin

Signal Processing Toolbox

  • Inputs must be constant

  • Requires Signal Processing Blockset license to generate code.

flipdim

MATLAB

fliplr

MATLAB

flipud

MATLAB

floor

MATLAB

floor

Fixed-Point Toolbox

freqspace

MATLAB

full

MATLAB

fzero

MATLAB

  • The first argument must be a function handle. Does not support structure, inline function, or string inputs for the first argument.

  • Supports up to three output arguments. Does not support the fourth output argument (the output structure).

  • Only supports the TolX and FunValCheck fields of an options input structure. Ignores all other options in an options input structure. Embedded MATLAB does not support the optimset function to create the options structure. Create this structure directly, for example,

    opt.TolX = tol; 
    opt.FunValCheck = 'on';

    The input structure field names must match exactly. Embedded MATLAB does not support partial matching.

gamma

MATLAB

gammainc

MATLAB

gammaln

MATLAB

gaussfir

Signal Processing Toolbox

  • Inputs must be constant

  • Requires Signal Processing Blockset license to generate code.

gausswin

Signal Processing Toolbox

  • Inputs must be constant

  • Requires Signal Processing Blockset license to generate code.

gcd

MATLAB

ge

MATLAB

ge

Fixed-Point Toolbox

  • Not supported for fixed-point signals with different biases.

get

Fixed-Point Toolbox

  • The syntax structure = get(o) is not supported.

getlsb

Fixed-Point Toolbox

getmsb

Fixed-Point Toolbox

gt

MATLAB

gt

Fixed-Point Toolbox

  • Not supported for fixed-point signals with different biases.

hamming

Signal Processing Toolbox

  • Inputs must be constant

  • Requires Signal Processing Blockset license to generate code.

hann

Signal Processing Toolbox

  • Inputs must be constant

  • Requires Signal Processing Blockset license to generate code.

hex2dec

MATLAB

hilb

MATLAB

hist

MATLAB

  • Histogram bar plotting not supported; call with at least one output argument.

  • If supplied, the second argument x must be a scalar constant.

  • Inputs must be real.

histc

MATLAB

horzcat

Fixed-Point Toolbox

hypot

MATLAB

idivide

MATLAB

  • opt string must be in lowercase.

  • For efficient generated code, MATLAB rules for divide by zero are supported only for the 'round' option.

ifft

MATLAB

  • Length of input vector must be a power of 2.

  • Output of ifft block is always complex.

  • Does not support the 'symmetric' option.

ifft2

MATLAB

  • Length of input matrix dimensions must each be a power of 2.

  • Does not support the 'symmetric' option.

ifftshift

MATLAB

imag

MATLAB

imag

Fixed-Point Toolbox

ind2sub

MATLAB

  • The first argument should be a valid size vector. Size vectors for arrays with more than intmax elements are not supported.

inf

MATLAB

  • Dimensions must be real, nonnegative, integer constants.

int8, int16, int32

MATLAB

intint8int16int32

Fixed-Point Toolbox

interp1

MATLAB

  • Supports only linear and nearest interpolation methods.

  • Does not handle evenly spaced X indices separately.

  • X must be strictly monotonically increasing or strictly monotonically decreasing; does not reorder indices.

interp1q, see interp1

MATLAB

  • X must be strictly monotonically increasing or strictly monotonically decreasing; does not reorder indices.

intfilt

Signal Processing Toolbox

  • Inputs must be constant

  • Requires Signal Processing Blockset license to generate code.

intmax

MATLAB

intmin

MATLAB

inv

MATLAB

Singular matrix inputs can produce nonfinite values that differ from MATLAB results.

invhilb

MATLAB

ipermute

MATLAB

isa

MATLAB

iscell

MATLAB

ischar

MATLAB

iscolumn

Fixed-Point Toolbox

isempty

MATLAB

isempty

Fixed-Point Toolbox

isequal

MATLAB

isequal

Fixed-Point Toolbox

isequalwithequalnans

MATLAB

isfi

Fixed-Point Toolbox

isfield

MATLAB

  • Does not support cell input for second argument

isfimath

Fixed-Point Toolbox

isfimathlocal

Fixed-Point Toolbox

isfinite

MATLAB

isfinite

Fixed-Point Toolbox

isfloat

MATLAB

isinf

MATLAB

isinf

Fixed-Point Toolbox

isinteger

MATLAB

islogical

MATLAB

isnan

MATLAB

isnan

Fixed-Point Toolbox

isnumeric

MATLAB

isnumeric

Fixed-Point Toolbox

isnumerictype

Fixed-Point Toolbox

isreal

MATLAB

isreal

Fixed-Point Toolbox

isrow

Fixed-Point Toolbox

isscalar

MATLAB

isscalar

Fixed-Point Toolbox

issigned

Fixed-Point Toolbox

issorted

MATLAB

issparse

MATLAB

isstr

MATLAB

isstruct

MATLAB

isvector

MATLAB

isvector

Fixed-Point Toolbox

kaiser

Signal Processing Toolbox

  • Inputs must be constant

  • Requires Signal Processing Blockset license to generate code.

kaiserord

Signal Processing Toolbox

  • Computation performed at run time.

  • Requires Signal Processing Blockset license to generate code.

kron

MATLAB

lcm

MATLAB

ldivide

MATLAB

le

MATLAB

le

Fixed-Point Toolbox

  • Not supported for fixed-point signals with different biases.

length

MATLAB

length

Fixed-Point Toolbox

linspace

MATLAB

  • Number of points N must be a constant that is positive, real, and integer valued

log

MATLAB

  • Generates an error during simulation and returns NaN for Real-Time Workshop targets when the input value x is real, but the output should be complex. To get the complex result, make the input value complex by passing in complex(x).

log2

MATLAB

log10

MATLAB

log1p

MATLAB

logical

MATLAB

logical

Fixed-Point Toolbox

logspace

MATLAB

lowerbound

Fixed-Point Toolbox

lsb

Fixed-Point Toolbox

  • Supported for scalar fixed-point signals only.

  • Supported for scalar, vector, and matrix, fi single and double signals.

lt

MATLAB

lt

Fixed-Point Toolbox

  • Not supported for fixed-point signals with different biases.

lu

MATLAB

magic

MATLAB

max

MATLAB

max

Fixed-Point Toolbox

maxflat

Signal Processing Toolbox

  • Inputs must be constant

  • Requires Signal Processing Blockset license to generate code.

mean

MATLAB

median

MATLAB

meshgrid

MATLAB

min

MATLAB

min

Fixed-Point Toolbox

minus

MATLAB

minus

Fixed-Point Toolbox

  • Any non-fi input must be constant; that is, its value must be known at compile time so that it can be cast to a fi object.

mldivide

MATLAB

mod

MATLAB

Performs all arithmetic in the output class. Hence, results might not match MATLAB due to different rounding errors.

mode

MATLAB

  • Does not support third output argument C (cell array)

mpower

MATLAB

mpy

Fixed-Point Toolbox

  • When you provide complex inputs to the mpy function inside of an Embedded MATLAB Function block, you must declare the input as complex before running the simulation. To do so, go to the Ports and data manager and set the Complexity parameter for all known complex inputs to On.

mrdivide

MATLAB

mrdivide

Fixed-Point Toolbox

mtimes

MATLAB

mtimes

Fixed-Point Toolbox

  • Any non-fi input must be constant; that is, its value must be known at compile time so that it can be cast to a fi object.

  • Variable-sized inputs are only supported when the SumMode property of the governing fimath is set to Specify precision or Keep LSB.

  • For variable-sized signals, you may see different results between the Embedded MATLAB subset and MATLAB.

    • In the Embedded MATLAB subset, the output for variable-sized signals is always computed using the SumMode property of the governing fimath.

    • In MATLAB, the output for variable-sized signals is computed using the SumMode property of the governing fimath when both inputs are non-scalar. However, if either input is a scalar, MATLAB computes the output using the ProductMode of the governing fimath.

NaN or nan

MATLAB

  • Dimensions must be real, nonnegative, integer constants

nargchk

MATLAB

  • Output structure does not include stack information.

nargin

MATLAB

nargout

MATLAB

nargoutchk

MATLAB

  • Output structure does not include stack information.

nchoosek

MATLAB

ndgrid

MATLAB

ndims

MATLAB

ndims

Fixed-Point Toolbox

ne

MATLAB

ne

Fixed-Point Toolbox

  • Not supported for fixed-point signals with different biases.

nearest

Fixed-Point Toolbox

nextpow2

MATLAB

nnz

MATLAB

nonzeros

MATLAB

norm

MATLAB

normest

MATLAB

not

MATLAB

nthroot

MATLAB

numberofelements

Fixed-Point Toolbox

  • Returns the number of elements of fi objects in the Embedded MATLAB subset (works the same as numel for fi objects in Embedded MATLAB).

numel

MATLAB

  • Returns the number of elements of fi objects in the Embedded MATLAB subset, rather than always returning 1.

numerictype

Fixed-Point Toolbox

  • Fixed-point signals coming in to an Embedded MATLAB Function block from Simulink are assigned a numerictype object that is populated with the signal's data type and scaling information.

  • Returns the data type when the input is a non-fixed-point signal.

  • Use to create numerictype objects in Embedded MATLAB code.

nuttallwin

Signal Processing Toolbox

  • Inputs must be constant

  • Requires Signal Processing Blockset license to generate code.

ones

MATLAB

  • Dimensions must be real, nonnegative, integer constants

or

MATLAB

parzenwin

Signal Processing Toolbox

  • Inputs must be constant

  • Requires Signal Processing Blockset license to generate code.

pascal

MATLAB

permute

MATLAB

permute

Fixed-Point Toolbox

pi

MATLAB

pinv

MATLAB

planerot

MATLAB

plus

MATLAB

plus

Fixed-Point Toolbox

  • Any non-fi input must be constant; that is, its value must be known at compile time so that it can be cast to a fi object.

pol2cart

MATLAB

poly

MATLAB

  • Does not discard nonfinite input values

  • Complex input always produces complex output

polyfit

MATLAB

polyval

MATLAB

pow2

Fixed-Point Toolbox

power

MATLAB

  • Generates an error during simulation and returns NaN for Real-Time Workshop targets when both X and Y are real, but power(X,Y) is complex. To get the complex result, make the input value X complex by passing in complex(X). For example, power(complex(X),Y).

  • Generates an error during simulation and returns NaN for Real-Time Workshop targets when both X and Y are real, but X .^ Y is complex. To get the complex result, make the input value X complex by using complex(X). For example, complex(X).^Y.

prod

MATLAB

qr

MATLAB

quad2d

MATLAB

  • Generates a warning if the size of the internal storage arrays is not sufficient. If a warning occurs, a possible workaround is to divide the region of integration into pieces and sum the integrals over each piece.

quatconj

Aerospace Blockset™

quatdivide

Aerospace Blockset

quatinv

Aerospace Blockset

quatmod

Aerospace Blockset

quatmultiply

Aerospace Blockset

quatnorm

Aerospace Blockset

quatnormalize

Aerospace Blockset

rand

MATLAB

  • Does not support the V5 generator.

  • May not match MATLAB results if seeded with negative values.

randn

MATLAB

  • May not match MATLAB results if seeded with negative values

randn

MATLAB

randperm

MATLAB

range

Fixed-Point Toolbox

rank

MATLAB

rcond

MATLAB

rdivide

MATLAB

rdivide

Fixed-Point Toolbox

real

MATLAB

real

Fixed-Point Toolbox

reallog

MATLAB

realmax

MATLAB

realmax

Fixed-Point Toolbox

realmin

MATLAB

realmin

Fixed-Point Toolbox

realpow

MATLAB

realsqrt

MATLAB

rectwin

Signal Processing Toolbox

  • Inputs must be constant

  • Requires Signal Processing Blockset license to generate code.

reinterpretcast

Fixed-Point Toolbox

rem

MATLAB

Performs all arithmetic in the output class. Hence, results might not match MATLAB due to different rounding errors.

repmat

MATLAB

repmat

Fixed-Point Toolbox

rescale

Fixed-Point Toolbox

reshape

MATLAB

reshape

Fixed-Point Toolbox

roots

MATLAB

  • Output is always variable size

  • Output is always complex

  • Roots may not be in the same order as MATLAB

  • Roots of poorly conditioned polynomials may not match MATLAB

rot90

MATLAB

round

MATLAB

round

Fixed-Point Toolbox

sec

MATLAB

secd

MATLAB

sech

MATLAB

sfi

Fixed-Point Toolbox

sgolay

Signal Processing Toolbox

  • Inputs must be constant

  • Requires Signal Processing Blockset license to generate code.

shiftdim

MATLAB

  • Second argument must be a constant

  • Class of second argument must be single or double

sign

MATLAB

sign

Fixed-Point Toolbox

sin

MATLAB

sind

MATLAB

single

MATLAB

single

Fixed-Point Toolbox

sinh

MATLAB

size

MATLAB

size

Fixed-Point Toolbox

sort

MATLAB

sort

Fixed-Point Toolbox

sortrows

MATLAB

sosfilt

Signal Processing Toolbox

  • Computation performed at run time.

  • Requires Signal Processing Blockset license to generate code.

sph2cart

MATLAB

squeeze

MATLAB

sqrt

MATLAB

  • Generates an error during simulation and returns NaN for Real-Time Workshop targets when the input value x is real, but the output should be complex. To get the complex result, make the input value complex by passing in complex(x).

sqrt

Fixed-Point Toolbox

  • Complex and [Slope Bias] inputs error out.

  • Negative inputs yield a 0 result.

std

MATLAB

strcmp

MATLAB

  • Arguments must be computable at compile time.

struct

MATLAB

sub

Fixed-Point Toolbox

sub2ind

MATLAB

  • The first argument should be a valid size vector. Size vectors for arrays with more than intmax elements are not supported.

subsasgn

Fixed-Point Toolbox

subspace

MATLAB

subsref

Fixed-Point Toolbox

sum

MATLAB

sum

Fixed-Point Toolbox

  • Variable-sized inputs are only supported when the SumMode property of the governing fimath is set to Specify precision or Keep LSB.

svd

MATLAB

tan

MATLAB

tand

MATLAB

tanh

MATLAB

taylorwin

Signal Processing Toolbox

  • Inputs must be constant

  • Requires Signal Processing Blockset license to generate code.

times

MATLAB

times

Fixed-Point Toolbox

  • Any non-fi input must be constant; that is, its value must be known at compile time so that it can be cast to a fi object.

  • When you provide complex inputs to the times function inside of an Embedded MATLAB Function block, you must declare the input as complex before running the simulation. To do so, go to the Ports and data manager and set the Complexity parameter for all known complex inputs to On.

toeplitz

MATLAB

trace

MATLAB

trapz

MATLAB

transpose

MATLAB

transpose

Fixed-Point Toolbox

triang

Signal Processing Toolbox

  • Inputs must be constant

  • Requires Signal Processing Blockset license to generate code.

tril

MATLAB

  • If supplied, the argument representing the order of the diagonal matrix must be a real and scalar integer value.

tril

Fixed-Point Toolbox

  • If supplied, the index, k, must be a real and scalar integer value that is not a fi object.

triu

MATLAB

  • If supplied, the argument representing the order of the diagonal matrix must be a real and scalar integer value.

triu

Fixed-Point Toolbox

  • If supplied, the index, k, must be a real and scalar integer value that is not a fi object.

true

MATLAB

  • Dimensions must be real, nonnegative, integer constants

tukeywin

Signal Processing Toolbox

  • Inputs must be constant

  • Requires Signal Processing Blockset license to generate code.

typecast

MATLAB

  • Value of string input argument type must be lower case

  • You may receive a size error when you use typecast with inheritance of input port data types in Embedded MATLAB Function blocks. To avoid this error, specify the block's input port data types explicitly.

ufi

Fixed-Point Toolbox

uint8uint16uint32

MATLAB

uint8, uint16, uint32

Fixed-Point Toolbox

uminus

MATLAB

uminus

Fixed-Point Toolbox

uplus

MATLAB

uplus

Fixed-Point Toolbox

upperbound

Fixed-Point Toolbox

vander

MATLAB

var

MATLAB

vertcat

Fixed-Point Toolbox

wilkinson

MATLAB

xcorr

Signal Processing Toolbox

  • Does not support the case where A is a matrix

  • Does not support partial (abbreviated) strings of biased, unbiased, coeff, or none

  • Computation performed at run time.

  • Requires Signal Processing Blockset license to generate code

xor

MATLAB

yulewalk

Signal Processing Toolbox

  • Computation performed at run time.

  • Requires Signal Processing Blockset license to generate code.

zeros

MATLAB

  • Dimensions must be real, nonnegative, integer constants

zp2tf

MATLAB

  • Requires Signal Processing Blockset license to generate code

Embedded MATLAB Function Library — Categorical List

The following topics list functions in the Embedded MATLAB library by different function types. Each entry includes a function name link to online help for the equivalent MATLAB or Fixed-Point Toolbox function along with a one-line description.

For an alphabetical list of these functions, and remarks and limitations for them, see Embedded MATLAB Function Library — Alphabetical List.

Aerospace Blockset Functions

The Embedded MATLAB subset supports the following Aerospace Blockset functions.

Function

Description

quatconj

Calculate conjugate of quaternion

quatdivide

Divide quaternion by another quaternion

quatinv

Calculate inverse of quaternion

quatmod

Calculate modulus of quaternion

quatmultiply

Calculate product of two quaternions

quatnorm

Calculate norm of quaternion

quatnormalize

Normalize quaternion

Arithmetic Operator Functions

See Arithmetic Operators + - * / \ ^ ' in the MATLAB Function Reference documentation for detailed descriptions of the following operator equivalent functions.

Function

Description

ctranspose

Complex conjugate transpose (')

idivide

Integer division with rounding option

isa

Determine if input is object of given class

ldivide

Left array divide

minus

Minus (-)

mldivide

Left matrix divide (\)

mpower

Equivalent of array power operator (.^)

mrdivide

Right matrix divide

mtimes

Matrix multiply (*)

plus

Plus (+)

power

Array power

rdivide

Right array divide

times

Array multiply

transpose

Matrix transpose (')

uminus

Unary minus (-)

uplus

Unary plus (+)

Casting Functions

The Embedded MATLAB subset supports the following functions for converting one type of data to another:

Data Type

Description

cast

Cast variable to different data type

char

Create character array (string)

class

Query class of object argument

double

Convert to double-precision floating point

int8, int16, int32

Convert to signed integer data type

logical

Convert to Boolean true or false data type

single

Convert to single-precision floating point

typecast

Convert data types without changing underlying data

uint8, uint16, uint32

Convert to unsigned integer data type

Complex Number Functions

The Embedded MATLAB subset supports the following functions for complex numbers:

Function

Description

complex

Construct complex data from real and imaginary components

conj

Return the conjugate of a complex number

imag

Return the imaginary part of a complex number

isnumeric

Return true for numeric arrays

isreal

Return false (0) for a complex number

isscalar

Return true if array is a scalar

real

Return the real part of a complex number

Data Type Functions

The Embedded MATLAB subset supports the following functions for data types:

Function

Description

iscell

Determine whether input is cell array

isstr

Determine whether input is character array

nargchk

Validate number of input arguments

nargoutchk

Validate number of output arguments

Derivative and Integral Functions

The Embedded MATLAB subset supports the following functions for derivatives and integrals:

Function

Description

cumtrapz

Cumulative trapezoidal numerical integration

diff

Differences and approximate derivatives

trapz

Trapezoidal numerical integration

Discrete Math Functions

The Embedded MATLAB subset supports the following discrete math functions:

Function

Description

lcm

Least common multiple of corresponding elements in arrays

gcd

Return an array containing the greatest common divisors of the corresponding elements of integer arrays

nchoosek

Binomial coefficient or all combinations

Error Handling Functions

The Embedded MATLAB subset supports the following functions for handling errors:

Function

Description

assert

Generate error when condition is violated

error

Display message and abort function

Exponential Functions

The Embedded MATLAB subset supports the following exponential functions:

Function

Description

exp

Exponential

expm

Matrix exponential

expm1

Compute exp(x)-1 accurately for small values of x

factorial

Factorial function

log

Natural logarithm

log2

Base 2 logarithm and dissect floating-point numbers into exponent and mantissa

log10

Common (base 10) logarithm

log1p

Compute log(1+x) accurately for small values of x

nextpow2

Next higher power of 2

nthroot

Real nth root of real numbers

reallog

Natural logarithm for nonnegative real arrays

realpow

Array power for real-only output

realsqrt

Square root for nonnegative real arrays

sqrt

Square root

Filtering and Convolution Functions

The Embedded MATLAB subset supports the following filtering and convolution functions:

Function

Description

conv

Convolution and polynomial multiplication

conv2

2-D convolution

deconv

Deconvolution and polynomial division

detrend

Remove linear trends

filter

1-D digital filter

filter2

2-D digital filter

Fixed-Point Toolbox Functions

For more information on fixed-point support in Embedded MATLAB, see Working with the Fixed-Point Embedded MATLAB Subset in the Fixed-Point Toolbox documentation. The Embedded MATLAB subset supports the following Fixed-Point Toolbox functions:

Function

Description

abs

Absolute value of fi object

add

Add two objects using fimath object

all

Determine whether all array elements are nonzero

any

Determine whether any array elements are nonzero

bitand

Bitwise AND of two fi objects

bitandreduce

Bitwise AND of consecutive range of bits

bitcmp

Bitwise complement of fi object

bitconcat

Concatenate bits of two fi objects

bitget

Bit at certain position

bitor

Bitwise OR of two fi objects

bitorreduce

Bitwise OR of consecutive range of bits

bitreplicate

Replicate and concatenate bits of a fi object

bitrol

Bitwise rotate left

bitror

Bitwise rotate right

bitset

Set bit at certain position

bitshift

Shift bits specified number of places

bitsliceget

Consecutive slice of bits

bitsll

Bit shift left logical

bitsra

Bit shift right arithmetic

bitsrl

Bit shift right logical

bitxor

Bitwise exclusive OR of two fi objects

bitxorreduce

Bitwise exclusive OR of consecutive range of bits

ceil

Round toward positive infinity

complex

Construct complex fi object from real and imaginary parts

conj

Complex conjugate of fi object

conv

Convolution and polynomial multiplication of fi objects

convergent

Round toward nearest integer with ties rounding to nearest even integer

ctranspose

Complex conjugate transpose of fi object

diag

Diagonal matrices or diagonals of matrix

disp

Display object

divide

Divide two objects

double

Double-precision floating-point real-world value of fi object

end

Last index of array

eps

Quantized relative accuracy for fi or quantizer objects

eq

Determine whether real-world values of two fi objects are equal

fi

Construct fi object

fimath

Construct fimath object

fix

Round toward zero

floor

Round toward negative infinity

ge

Determine whether real-world value of one fi object is greater than or equal to another

get

Property values of object

getlsb

Least significant bit

getmsb

Most significant bit

gt

Determine whether real-world value of one fi object is greater than another

horzcat

Horizontally concatenate multiple fi objects

imag

Imaginary part of complex number

int, int8, int16, or int32

Stored integer value of fi object as built-in int8, int16, or int32

iscolumn

Determine whether fi object is column vector

isempty

Determine whether array is empty

isequal

Determine whether real-world values of two fi objects are equal, or determine whether properties of two fimath, numerictype, or quantizer objects are equal

isfi

Determine whether variable is fi object

isfimath

Determine whether variable is fimath object

isfimathlocal

Determine whether fi object has attached fimath object

isfinite

Determine whether array elements are finite

isinf

Determine whether array elements are infinite

isnan

Determine whether array elements are NaN

isnumeric

Determine whether input is numeric array

isnumerictype

Determine whether variable is numerictype object

isreal

Determine whether array elements are real

isrow

Determine whether fi object is row vector

isscalar

Determine whether input is scalar

issigned

Determine whether fi object is signed

isvector

Determine whether input is vector

le

Determine whether real-world value of fi object is less than or equal to another

length

Vector length

logical

Convert numeric values to logical

lowerbound

Lower bound of range of fi object

lsb

Scaling of least significant bit of fi object

lt

Determine whether real-world value of one fi object is less than another

max

Largest element in array of fi objects

min

Smallest element in array of fi objects

minus

Matrix difference between fi objects

mpy

Multiply two objects using fimath object

mtimes

Matrix product of fi objects

ndims

Number of array dimensions

ne

Determine whether real-world values of two fi objects are not equal

nearest

Round toward nearest integer with ties rounding toward positive infinity

numberofelements

Number of data elements in fi array

numerictype

Construct numerictype object

permute

Rearrange dimensions of multidimensional array

plus

Matrix sum of fi objects

pow2

Multiply by 2K

range

Numerical range of fi or quantizer object

real

Real part of complex number

realmax

Largest positive fixed-point value or quantized number

realmin

Smallest positive normalized fixed-point value or quantized number

reinterpretcast

Convert fixed-point data types without changing underlying data

repmat

Replicate and tile array

rescale

Change scaling of fi object

reshape

Reshape array

round

Round fi object toward nearest integer or round input data using quantizer object

sfi

Construct signed fixed-point numeric object

sign

Perform signum function on array

single

Single-precision floating-point real-world value of fi object

size

Array dimensions

sort

Sort elements of real-valued fi object in ascending or descending order

sqrt

Square root of fi object

sub

Subtract two objects using fimath object

subsasgn

Subscripted assignment

subsref

Subscripted reference

sum

Sum of array elements

times

Element-by-element multiplication of fi objects

transpose

Transpose operation

tril

Lower triangular part of matrix

triu

Upper triangular part of matrix

ufi

Construct unsigned fixed-point numeric object

uint8, uint16, or uint32

Stored integer value of fi object as built-in uint8, uint16, or uint32

uminus

Negate elements of fi object array

uplus

Unary plus

upperbound

Upper bound of range of fi object

vertcat

Vertically concatenate multiple fi objects

Histogram Functions

The Embedded MATLAB subset supports the following histogram functions:

Function

Description

hist

Non-graphical histogram

histc

Histogram count

Input and Output Functions

The Embedded MATLAB subset supports the following functions for accessing argument and return values:

Function

Description

nargin

Return the number of input arguments a user has supplied

nargout

Return the number of output return values a user has requested

Interpolation and Computational Geometry

The Embedded MATLAB subset supports the following functions for interpolation and computational geometry:

Function

Description

cart2pol

Transform Cartesian coordinates to polar or cylindrical

cart2sph

Transform Cartesian coordinates to spherical

interp1

One-dimensional interpolation (table lookup)

interp1q

Quick one-dimensional linear interpolation (table lookup)

meshgrid

Generate X and Y arrays for 3-D plots

pol2cart

Transform polar or cylindrical coordinates to Cartesian

sph2cart

Transform spherical coordinates to Cartesian

Logical Operator Functions

The Embedded MATLAB subset supports the following functions for performing logical operations:

FunctionDescription

and

Logical AND (&&)

bitand

Bitwise AND

bitcmp

Bitwise complement

bitget

Bit at specified position

bitor

Bitwise OR

bitset

Set bit at specified position

bitshift

Shift bits specified number of places

bitxor

Bitwise XOR

not

Logical NOT (~)

or

Logical OR (||)

xor

Logical exclusive-OR

Matrix and Array Functions

The Embedded MATLAB subset supports the following functions for matrices and arrays:

Function

Description

abs

Return absolute value and complex magnitude of an array

all

Test if all elements are nonzero

angle

Phase angle

any

Test for any nonzero elements

bsxfunApplies element-by-element binary operation to two arrays with singleton expansion enabled
cat

Concatenate arrays along specified dimension

circshift

Shift array circularly

compan

Companion matrix

cond

Condition number of a matrix with respect to inversion

cov

Covariance matrix

cross

Vector cross product

cumprod

Cumulative product of array elements

cumsum

Cumulative sum of array elements

det

Matrix determinant

diag

Return a matrix formed around the specified diagonal vector and the specified diagonal (0, 1, 2,...) it occupies

diff

Differences and approximate derivatives

dot

Vector dot product

eig

Eigenvalues and eigenvectors

eye

Identity matrix

false

Return an array of 0s for the specified dimensions

find

Find indices and values of nonzero elements

flipdim

Flip array along specified dimension

fliplr

Flip matrix left to right

flipud

Flip matrix up to down

full

Convert sparse matrix to full matrix

hilb

Hilbert matrix

ind2sub

Subscripts from linear index

inv

Inverse of a square matrix

invhilb

Inverse of Hilbert matrix

ipermute

Inverse permute dimensions of array

isempty

Determine whether array is empty

isequal

Test arrays for equality

isequalwithequalnans

Test arrays for equality, treating NaNs as equal

isfinite

Detect finite elements of an array

isfloat

Determine if input is floating-point array

isinf

Detect infinite elements of an array

isinteger

Determine if input is integer array

islogical

Determine if input is logical array

isnan

Detect NaN elements of an array

issparse

Determine whether input is sparse

isvector

Determine whether input is vector

kron

Kronecker tensor product

length

Return the length of a matrix

linspace

Generate linearly spaced vectors

logspace

Generate logarithmically spaced vectors

lu

Matrix factorization

magic

Magic square

max

Maximum elements of a matrix

min

Minimum elements of a matrix

ndgrid

Generate arrays for N-D functions and interpolation

ndims

Number of dimensions

nnz

Number of nonzero matrix elements

nonzeros

Nonzero matrix elements

norm

Vector and matrix norms

normest

2-norm estimate

numel

Number of elements in array or subscripted array

ones

Create a matrix of all 1s

pascal

Pascal matrix

permute

Rearrange dimensions of array

pinv

Pseudoinverse of a matrix

planerot

Givens plane rotation

prod

Product of array element

qr

Orthogonal-triangular decomposition

randperm

Random permutation

rank

Rank of matrix

rcond

Matrix reciprocal condition number estimate

repmat

Replicate and tile an array

reshape

Reshape one array into the dimensions of another

rot90

Rotate matrix 90 degrees

shiftdim

Shift dimensions

sign

Signum function

size

Return the size of a matrix

sort

Sort elements in ascending or descending order

sortrows

Sort rows in ascending order

squeeze

Remove singleton dimensions

sub2ind

Single index from subscripts

subspace

Angle between two subspaces

sum

Sum of matrix elements

toeplitz

Toeplitz matrix

trace

Sum of diagonal elements

tril

Extract lower triangular part

triu

Extract upper triangular part

true

Return an array of logical (Boolean) 1s for the specified dimensions

vander

Vandermonde matrix

wilkinson

Wilkinson's eigenvalue test matrix

zeros

Create a matrix of all zeros

Nonlinear Numerical Methods

The Embedded MATLAB subset supports the following nonlinear numerical methods:

Function

Description

fzero

Find root of continuous function of one variable

quad2d

Numerically evaluate double integral over planar region

Polynomial Functions

The Embedded MATLAB subset supports the following functions for polynomials:

Function

Description

poly

Polynomial with specified roots

polyfit

Polynomial curve fitting

polyval

Polynomial evaluation

roots

Polynomial roots

Relational Operator Functions

The Embedded MATLAB subset supports the following functions for performing relational operations:

Function

Description

eq

Equal (==)

ge

Greater than or equal to (>=)

gt

Greater than (>)

le

Less than or equal to (<=)

lt

Less than (<)

ne

Not equal (~=)

Rounding and Remainder Functions

The Embedded MATLAB subset supports the following rounding and remainder functions:

Function

Description

ceil

Round toward plus infinity

ceil

Round toward positive infinity

convergent

Round toward nearest integer with ties rounding to nearest even integer

fix

Round toward zero

fix

Round toward zero

floor

Round toward minus infinity

floor

Round toward negative infinity

mod

Modulus (signed remainder after division)

nearest

Round toward nearest integer with ties rounding toward positive infinity

rem

Remainder after division

round

Round toward nearest integer

round

Round fi object toward nearest integer or round input data using quantizer object

Set Functions

The Embedded MATLAB subset supports the following set functions:

Function

Description

issorted

Determine whether set elements are in sorted order

Signal Processing Functions

The Embedded MATLAB subset supports the following signal processing functions:

FunctionDescription

barthannwin

Modified Bartlett-Hann window (requires Signal Processing Blockset license to generate code)

bitrevorder

Permute data into bit-reversed order (requires Signal Processing Blockset license to generate code)

blackman

Blackman window (requires Signal Processing Blockset license to generate code)

blackmanharris

Minimum 4-term Blackman-Harris window (requires Signal Processing Blockset license to generate code)

bohmanwin

Bohman window (requires Signal Processing Blockset license to generate code)

butter

Butterworth filter design (requires Signal Processing Blockset license to generate code)

cfirpm

Complex and nonlinear-phase equiripple FIR filter design (requires Signal Processing Blockset license to generate code)

chebwin

Chebyshev window (requires Signal Processing Blockset license to generate code)

cheby1

Chebyshev Type I filter design (passband ripple) (requires Signal Processing Blockset license to generate code)

cheby2

Chebyshev Type II filter design (stopband ripple) (requires Signal Processing Blockset license to generate code)

chol

Cholesky factorization

conv

Convolution and polynomial multiplication

dpss

Discrete prolate spheroidal (Slepian) sequences (requires Signal Processing Blockset license to generate code)

ellip

Elliptic filter design (requires Signal Processing Blockset license to generate code)

fft

Discrete Fourier transform

fft2

2-D discrete Fourier transform

fftshift

Shift zero-frequency component to center of spectrum

filter

Filter a data sequence using a digital filter that works for both real and complex inputs

fir1

Window-based finite impulse response filter design (requires Signal Processing Blockset license to generate code)

fir2

Frequency sampling-based finite impulse response filter design (requires Signal Processing Blockset license to generate code)

fircls

Constrained least square, lowpass and highpass, linear phase, FIR filter design (requires Signal Processing Blockset license to generate code)

fircls1

Constrained least square, lowpass and highpass, linear phase, FIR filter design (requires Signal Processing Blockset license to generate code)

firls

Least square linear-phase FIR filter design (requires Signal Processing Blockset license to generate code)

firpm

Parks-McClellan optimal FIR filter design (requires Signal Processing Blockset license to generate code)

firpmord

Parks-McClellan optimal FIR filter order estimation (requires Signal Processing Blockset license to generate code)

firrcos

Raised cosine FIR filter design (requires Signal Processing Blockset license to generate code)

flattopwin

Flat Top weighted window (requires Signal Processing Blockset license to generate code)

freqspace

Frequency spacing for frequency response

gaussfir

Gaussian FIR pulse-shaping filter (requires Signal Processing Blockset license to generate code)

gausswin

Gaussian window (requires Signal Processing Blockset license to generate code)

hamming

Hamming window (requires Signal Processing Blockset license to generate code)

hann

Hann (Hanning) window (requires Signal Processing Blockset license to generate code)

ifft

Inverse discrete Fourier transform

ifft2

2-D inverse discrete Fourier transform

ifftshift

Inverse discrete Fourier transform shift

intfilt

Interpolation FIR filter design (requires Signal Processing Blockset license to generate code)

kaiser

Kaiser window (requires Signal Processing Blockset license to generate code)

kaiserord

Kaiser window FIR filter design estimation parameters (requires Signal Processing Blockset license to generate code)

maxflat

Maxflat FIR filter (requires Signal Processing Blockset license to generate code)

nuttallwin

Nuttall-defined minimum 4-term Blackman-Harris window (requires Signal Processing Blockset license to generate code)

parzenwin

Parzen (de la Valle-Poussin) window (requires Signal Processing Blockset license to generate code)

rectwin

Rectangular window (requires Signal Processing Blockset license to generate code)

sgolay

Savitzky-Golay filter design (requires Signal Processing Blockset license to generate code)

sosfilt

Second-order (biquadratic) IIR filtering (requires Signal Processing Blockset license to generate code)

svd

Singular value decomposition

taylorwin

Taylor window (requires Signal Processing Blockset license to generate code)

triang

Triangular window (requires Signal Processing Blockset license to generate code)

tukeywin

Tukey (tapered cosine) window (requires Signal Processing Blockset license to generate code)

xcorr

Cross-correlation (requires Signal Processing Blockset license to generate code)

yulewalk

Recursive digital filter design (requires Signal Processing Blockset license to generate code)

zp2tf

Convert zero-pole-gain filter parameters to transfer function form (requires Signal Processing Blockset license to generate code)

Special Values

The Embedded MATLAB subset supports the following special data values:

Symbol

Description

eps

Floating-point relative accuracy

inf

IEEE® arithmetic representation for positive infinity

intmax

Largest possible value of specified integer type

intmin

Smallest possible value of specified integer type

NaN or nan

Not a number

pi

Ratio of the circumference to the diameter for a circle

rand

Uniformly distributed pseudorandom numbers

randn

Normally distributed random numbers

realmax

Largest positive floating-point number

realmin

Smallest positive floating-point number

Specialized Math

The Embedded MATLAB subset supports the following specialized math functions:

Symbol

Description

beta

Beta function

betainc

Incomplete beta function

betaln

Logarithm of beta function

ellipke

Complete elliptic integrals of first and second kind

erf

Error function

erfc

Complementary error function

erfcinv

Inverse of complementary error function

erfcx

Scaled complementary error function

erfinv

Inverse error function

expint

Exponential integral

gamma

Gamma function

gammainc

Incomplete gamma function

gammaln

Logarithm of the gamma function

Statistical Functions

The Embedded MATLAB subset supports the following statistical functions:

Function

Description

mean

Average or mean value of array

median

Median value of array

mode

Most frequent values in array

std

Standard deviation

var

Variance

String Functions

The Embedded MATLAB subset supports the following functions for handling strings:

Function

Description

bin2dec

Convert binary number string to decimal number

bitmax

Maximum double-precision floating-point integer

blanks

Create string of blank characters

char

Create character array (string)

hex2dec

Convert hexadecimal number string to decimal number

ischar

True for character array (string)

strcmp

Return a logical result for the comparison of two strings; limited to strings known at compile time

Structure Functions

The Embedded MATLAB subset supports the following functions for handling structures:

Function

Description

isfield

Determine whether input is structure array field

struct

Create structure

isstruct

Determine whether input is a structure

Trigonometric Functions

The Embedded MATLAB subset supports the following trigonometric functions:

Function

Description

acos

Inverse cosine

acosd

Inverse cosine; result in degrees

acosh

Inverse hyperbolic cosine

acot

Inverse cotangent; result in radians

acotd

Inverse cotangent; result in degrees

acoth

Inverse hyperbolic cotangent

acsc

Inverse cosecant; result in radians

acscd

Inverse cosecant; result in degrees

acsch

Inverse cosecant and inverse hyperbolic cosecant

asec

Inverse secant; result in radians

asecd

Inverse secant; result in degrees

asech

Inverse hyperbolic secant

asin

Inverse sine

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; result in degrees

cosh

Hyperbolic cosine

cot

Cotangent; result in radians

cotd

Cotangent; result in degrees

coth

Hyperbolic cotangent

csc

Cosecant; result in radians

cscd

Cosecant; result in degrees

csch

Hyperbolic cosecant

hypot

Square root of sum of squares

sec

Secant; result in radians

secd

Secant; result in degrees

sech

Hyperbolic secant

sin

Sine

sind

Sine; result in degrees

sinh

Hyperbolic sine

tan

Tangent

tand

Tangent; result in degrees

tanh

Hyperbolic tangent

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS