# edit

function editor.

## Syntax

* edit()
* edit filename
* edit function\_name

## Input argument

* filename - a string: filename to open.
* function\_name - a string: function name

## Description

edit opens a new file called untitled.m in the nelson's editor.

If function\_name is the name of a defined nelson function edit(function\_name) try to open the associated file function\_name.m .

edit(dirname) opens all .m available in dirname.

## Example

```matlab
edit('edit')
```

## See also

[smartindent](smartindent).

## History

| Version | Description         |
| ------- | ------------------- |
| 1.0.0   | initial version     |
| 1.5.0   | edit(dirname) added |

## Author

Allan CORNET
