MATLAB: How to create Contents.m from command window

contents.m

I'm looking for a way to create the Contents.m file using a command (ie. not the GUI Reports -> Contents)

Best Answer

Hi,
to start the report:
runreport('contentsrpt')
To create the contents.m file:
makecontentsfile
Both commands are undocumented, but you can look at the code of these functions.