MATLAB: Autocomplete of filenames for function input params

completefunctionsmatlab functionmatlab programmingtabtab completion

When using matlab functions such as "load" or "save" you can double-tab to autocomplete filenames that are in the path. However, when I have written my own functions that take filename strings as input this feature is not available (Which is reasonable since all functions shouldn't assume filename input).
I wonder if it is possible to somehow "hint" your own functions that they should try to autocomplete input parameters by searching over files in your matlab path.

Best Answer

See Yair's article about tab-completion: Undocumented:Tab-Completeion
There you find instructions for editing:
edit(fullfile(matlabroot,'toolbox/local/TC.xml'))