Watch this Author's files
i do not understand the need for this wrapper; a=dir('*.m');c={a.name}; would (probably) do the same...
Contact us at files@mathworks.com