File Exchange

image thumbnail

Recursive contents report

version 1.0.0.0 (715 KB) by Christopher Hummersone
Create a Contents.m file including subdirectories

1 Download

Updated 05 May 2018

View License on GitHub

NOTE: this function is now available from the IoSR Matlab Toolbox as iosr.general.updateContents.
-------------------------
UPDATE_CONTENTS scans through the current directory, and its subdirectories, and builds a Contents file similar to Matlab's report-generated Contents.m files. Any existing Contents.m file will be overwritten.

Comments and Ratings (4)

You'd probably need to modify the get_H1_line() function. Specifically you'll probably need to modify the contents of the while loop to append the H1_line variable, rather than just keeping the first line that starts with a %. You'll also likely need to modify how the information is written to the contents.m file (around line 88). Good luck! Chris

DPeters

Nice function. Can you tell me where to change the function to update the help report which displays all help lines and not only the first one?

Hi Sean. The link to get_contents() is in the file description.

I think you're missing get_contents()

Updates

1.0.0.0

Migrated to GitHub.

MATLAB Release Compatibility
Created with R2015a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Discover Live Editor

Create scripts with code, output, and formatted text in a single executable document.


Learn About Live Editor