MATLAB: How to insert a page break in a Matlab Report Generator PDF file

MATLAB Report Generatorpdfreport generator

I am using the Matlab report generator with the DOM object model to programmatically create PDF reports as my script executes. How can I insert a page break to insure that items such as tables appear at the top of the page they are located on

Best Answer

Hi Stephen,
You can use mlreportgen.dom.PageBreak object or mlreportgen.dom.PageBreakBefore format to insert a page break in a PDF report.
-Rahul