# checkInteger

check if integer is in valid range

## Contents

- Syntax
- Description
- Input Arguments
- Output Arguments
- See Also

## Syntax

Opts = checkInteger(Opts,field,default)
Opts = checkInteger(Opts,field,default,lb)
Opts = checkInteger(Opts,field,default,lb,ub)

## Description

Checks if the specified setting is an integer and takes values in the valid range.

## Input Arguments

Opts | a structure containing the algorithm settings
field | string specifying the name of the setting that is checked
default | default value
lb | lower bound of the valid range
ub | upper bound of the valid range

## Output Arguments

Opts | adapted structure of algorithm settings

## See Also

`checkOpts`, `checkDouble`, `checkString`

© 2018-2023 I6 Technische Universität München `•` Website `•` License