val = statget(options, field)
val = statget(options, field, defaultData)
| Parameter | Description |
|---|---|
| options | scalar options structure. |
| field | field name or unique leading characters of a field name. |
| defaultData | value returned when the matched field is empty. |
| Parameter | Description |
|---|---|
| val | field value, default value, or an empty array when the field name is not uniquely matched. |
statget returns a value from an options structure. Field names are matched case-insensitively and can be abbreviated when the abbreviation is unique.
opts = statset('kmeans');
statget(opts, 'MaxI')
opts = statset();
statget(opts, 'TolX', 1e-6)