names = fieldnames(st)
names = fieldnames(h)
names = fieldnames(h, '-full')
| Parameter | Description |
|---|---|
| st | a structure |
| h | a handle object |
| Parameter | Description |
|---|---|
| names | a cell of strings |
names = fieldnames(st) returns a cell of strings with the names of the fields in the input structure.
names = fieldnames(h) returns a cell of strings with the names of the properties in the handle (without hidden).
names = fieldnames(h, '-full') returns a cell of strings with the names of the all properties in the handle.
fieldnames(dir())
| Version | Description |
|---|---|
| 1.0.0 | initial version |