# checkString

check if a string setting takes as valid value

## Contents

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

## Syntax

Opts = checkString(Opts,field,default,values)

## Description

Checks if the specified setting is a string and takes a valid value.

## Input Arguments

Opts | a structure containing the algorithm settings
field | string specifying the name of the setting that is checked
default | default value
values | cell-array defining the valid values

## Output Arguments

Opts | adapted structure of algorithm settings

## See Also

`checkOpts`, `checkInteger`, `checkDouble`, `checkBoolean`

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