Type::AnyType

Type representing arbitrary MuPAD objects

Use only in the MuPAD Notebook Interface.

This functionality does not run in MATLAB.

Syntax

testtype(obj, Type::AnyType)

Description

Type::AnyType represents arbitrary MuPAD® objects.

This type is meant to represent arbitrary MuPAD objects in constructors of composite types such as Type::ListOf.

This type does not represent a property: it cannot be used in assume.

Examples

Example 1

Any object matches this type:

testtype(3, Type::AnyType),
testtype(x, Type::AnyType),
testtype(array(1..1, [x]), Type::AnyType),
testtype(Dom::Matrix(), Type::AnyType)

This type is meant for constructing composite types. The following call tests, whether an object is a list with arbitrary elements:

testtype([3, x, array(1..1, [x]), Dom::Matrix()],
         Type::ListOf(Type::AnyType))

Parameters

obj

Any MuPAD object

Return Values

testtype always returns TRUE

See Also

MuPAD Functions

Was this topic helpful?