symbols

symbols returns the names and the sizes of variables and functions.

svSymbols = symbols()
svSymbols = symbols(nType)
<svSymbols, svTypeSize> = symbols()
<svSymbols, svTypeSize> = symbols(nType)

Return Value

svSymbols is a string vector with the names of variables and functions. svTypeSize is a string matrix with four columns:

Value Meaning
svTypeSize[;1] The first column contains the type of the variables. The type is one of four values: “Real”, “Complex”, “String”, “Function”.
svTypeSize[;2] The second column contains the number of columns.
svTypeSize[;3] The third column contains the number of rows.
svTypeSize[;4] The fourth column contains the size of the variables in bytes.

Parameters

nType

nType is a combination of four values (see example):

Value Meaning
1 Real
2 Complex
4 String
8 User-Function (Functions written in UniScript)
16 Built-In-Function
32 Functions which were registered with RegisterFunction
64 COM-Object
128 Variant
256 UniScript Objekts.
512 Namen der geladenen DLLs.

Example

The following call prints the names of all variables.

symbols(1|2|4)

History

Version Description
R2013.6 nType == 512, zur Ausgabe der geladenen DLLs.

id-1678059