- `NAME = mfilename ()`
- `NAME = mfilename ("fullpath")`
- `NAME = mfilename ("fullpathext")`

Return the name of the currently executing file.

With `"fullpath"`, include the directory path. With `"fullpathext"`, include
both the directory path and file extension.

See also: `dbstack`, `which`.

### References

- https://www.mathworks.com/help/matlab/ref/mfilename.html
- https://octave.sourceforge.io/octave/function/mfilename.html
