# Documentation

### This is machine translation

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

# `Type`::`SequenceOf`

Type representing sequences

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`, (`obj_type`, <`min_nr, <max_nr>`>))
```

## Description

With `Type::SequenceOf`, sequences with specified objects can be identified.

The call `testtype(obj, Type::SequenceOf(obj_type))` checks, whether `obj` is a sequence with elements of the given type `obj_type`. In that case, it `TRUE`, otherwise `FALSE`.

A sequence has the domain type `DOM_EXPR` and the type `"_exprseq"`.

The two optional parameters `min_nr` and `max_nr` determine the minimum and maximum number of arguments of the analysed sequence, respectively. If the numbers are not be given, the number of elements of the sequence will not be checked. If only the minimum is given, the sequence must have at least `min_nr` elements for the test to succeed.

This type does not represent a property.

## Examples

### Example 1

Is the given sequence a sequence of identifiers?

`testtype((a, b, c, d, e, f), Type::SequenceOf(DOM_IDENT))`

Is the given sequence a sequence of at least five real numbers?

`testtype((0, 0.5, 1, 1.5, 2, 2.5, 3), Type::SequenceOf(Type::Real, 5))`

## Parameters

 `obj` Any MuPAD® object `obj_type` The type of the objects; a type can be an object of the library Type or one of the possible return values of `domtype` and `type` `min_nr` The minimal number of objects as nonnegative integer `max_nr` The maximal number of objects as nonnegative integer