Apifun
Apifun
apifun_overview
—
An overview of the Apifun toolbox.
apifun_checklhs
—
Generates an error if the number of LHS is not in given set.
apifun_checkrhs
—
Generates an error if the number of RHS is not in given set.
Support
apifun_argindefault
—
Returns the value of an input argument.
apifun_expandfromsize
—
Expand variables from a size.
apifun_expandvar
—
Expand variables so that they all have the same shape.
apifun_keyvaluepairs
—
Returns options from key-value pairs.
Check content
apifun_checkcomplex
—
Generates an error if the variable has a zero imaginary part.
apifun_checkflint
—
Generates an error if the variable is not a floating point integer.
apifun_checkgreq
—
Check that the value is greater or equal than a threshold.
apifun_checkloweq
—
Checks that the value is lower or equal than a threshold.
apifun_checkoption
—
Generates an error if the value of an input argument is not expected.
apifun_checkrange
—
Check that the value is in a given range.
apifun_checkreal
—
Generates an error if the variable has an imaginary part.
Check size
apifun_checkdims
—
Generates an error if the variable has not the required size.
apifun_checkscalar
—
Generates an error if the variable is not a scalar.
apifun_checksquare
—
Generates an error if the variable is not a square matrix.
apifun_checkveccol
—
Generates an error if the variable is not a column vector.
apifun_checkvecrow
—
Generates an error if the variable is not a row vector.
apifun_checkvector
—
Generates an error if the variable is not a vector.
Check type
apifun_checkcallable
—
Generates an error if the variable is not a callable function.
apifun_checktype
—
Generates an error if the given variable is not of expected type.