Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Type::AnyType

Type representing arbitrary MuPAD objects

MuPAD® notebooks are not recommended. Use MATLAB® live scripts instead.

MATLAB live scripts support most MuPAD functionality, though there are some differences. For more information, see Convert MuPAD Notebooks to MATLAB Live Scripts.

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?