# getRedundantFields

get all redundant fields of a struct

## Contents

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

## Syntax

redFields = getRedundantFields(Opts,validFields)
redFields = getRedundantFields(Opts,validFields,name)

## Description

Returns a list of all fields of a struct that a redundant.

## Input Arguments

Opts | a structure containing algorithm settings
validFields | cell-array containing all valid fields
name | name of the substuct (e.g. `'extHorizon'` for fields; of struct Opts.extHorizon)

## Output Arguments

redFields | list of redundant fields in the struct

## See Also

`checkOpts`

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