Is it possible to dynamically change the Table of Contents for the report generated by the PUBLISH command in MATLAB?
3 views (last 30 days)
Show older comments
I am using the PUBLISH function, or the Publish button, to generate a report (HTML or otherwise) for my program.
In this report, I would like to dynamically specify the Table of Contents.
For instance, I would like a specify a cell header within a loop, and have each of these iterations appear in the Table of Contents, with the appropriate string generated in each iteration.
Accepted Answer
MathWorks Support Team
on 22 Jan 2010
This functionality is not possible with the PUBLISH function since PUBLISH picks up on the cell headers to generate the Table of Contents, and it is not possible to make the output of some calculation become the cell header.
The reason is that the PUBLISH function is really designed to quickly allow you to describe and share your MATLAB code, as it is. As a workaround, you may post-process the output instead by editing the HTML or DOC or PPT file that has been generated.
For more advanced features with automated report generation from MATLAB, please consider the MATLAB Report Generator product for your needs:
<http://www.mathworks.com/products/ML_reportgenerator/>
0 Comments
More Answers (0)
See Also
Categories
Find more on MATLAB Report Generator in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!