Type::Unknown

Type representing variables

Use only in the MuPAD Notebook Interface.

This functionality does not run in MATLAB.

Syntax

testtype(obj, Type::Unknown)

Description

Type::Unknown represents identifiers and indexed identifiers.

The call testtype(obj, Type::Unknown) checks, whether obj is an identifier or an indexed identifier with an integer index. If it is, the call returns TRUE, otherwise FALSE.

An identifier has the domain type DOM_IDENT. An indexed identifier is an expression with type_index and two operands, the first of which is an identifier and the second one is an integer. A local variable is not of type Type::Unknown.

This type does not represent a property.

Examples

Example 1

Type::Unknown accepts identifiers:

testtype(x, Type::Unknown)

x[0] is an indexed identifier accepted by Type::Unknown:

testtype(x[0], Type::Unknown)

The index must be an integer:

testtype(x[-1], Type::Unknown),
testtype(x[1.0], Type::Unknown)

Parameters

obj

Any MuPAD® object

Return Values

See testtype

See Also

MuPAD Functions

Was this topic helpful?