value = getfield(st, field)
| Parameter | Description |
|---|---|
| st | a structure. |
| field | a string. |
| Parameter | Description |
|---|---|
| value | the value of a field from a structure. |
value = getfield(st, field) returns the value of the field named field from a structure.
example.a = 1
example.b = 'nelson'
example.c = []
getfield(example, 'b')
| Version | Description |
|---|---|
| 1.0.0 | initial version |