> 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/functions_manager/macroargs.md).

# macroargs

Returns variables names of a function.

## 📝 Syntax

* \[argOut, argIn] = macroarg(function\_name)

## 📥 Input argument

* function\_name - a string: function name.

## 📤 Output argument

* argOut - a cell with output arguments.
* argIn - a cell with input arguments.

## 📄 Description

macroargs returns input and output variables used by the function.

## 💡 Example

```matlab
[out_args, in_args] = macroarg('getfield')
[out_args, in_args] = macroarg('deal')
```

## 🔗 See also

[which](/nelson/markdown/en/functions_manager/which.md).

## 🕔 History

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