Is it possible to dynamically change the Table of Contents for the report generated by the PUBLISH command in MATLAB?

3 次查看(过去 30 天)
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.

采纳的回答

MathWorks Support Team
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 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB Report Generator 的更多信息

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by