> For the complete documentation index, see [llms.txt](https://nelson-9.gitbook.io/nelson/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nelson-9.gitbook.io/nelson/markdown/en/data_structures/fieldnames.md).

# fieldnames

Returns field names of a structure or an handle.

## 📝 Syntax

* names = fieldnames(st)
* names = fieldnames(h)
* names = fieldnames(h, '-full')

## 📥 Input argument

* st - a structure
* h - a handle object

## 📤 Output argument

* names - a cell of strings

## 📄 Description

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.

## 💡 Example

```matlab
fieldnames(dir())
```

## 🔗 See also

[getfield](/nelson/markdown/en/data_structures/getfield.md).

## 🕔 History

| Version | 📄 Description  |
| ------- | --------------- |
| 1.0.0   | initial version |
