Function Reference

Data Types

General

typeinfo
Return the type of the expression EXPR, as a string.

Built-in Data Types

class
Return the class of the expression EXPR, as a string or create a class object from the structure S with name ID.
isa
Return true if X is a value from the class CLASS.
cast
Convert VAL to data type TYPE.
typecast
Convert from one datatype to another without changing the underlying data.
swapbytes
Swaps the byte order on values, converting from little endian to big endian and visa-versa.
NA
Return a matrix or N-dimensional array whose elements are all equal to the special constant used to designate missing values.
isna
Return 1 for elements of X that are NA (missing) values and zero otherwise.

Object Sizes

ndims
Returns the number of dimensions of array A.
columns
Return the number of columns of A.
rows
Return the number of rows of A.
numel
Returns the number of elements in the object A.
length
Return the `length' of the object A.
size
Return the number rows and columns of A.
isempty
Return 1 if A is an empty matrix (either the number of rows, or the number of columns, or both are zero).
sizeof
Return the size of VAL in bytes
size_equal
Return true if the dimensions of all arguments agree.
squeeze
Remove singleton dimensions from X and return the result.