I would like to be able to include code contained in an m-file in a pdf report created with the Report Generator. I know I can use 'publish', to do this but I want to make use of the other functionality of report. Is this possible?
import mlreportgen.report.*import mlreportgen.dom.*R = Report('test','pdf');open(R)% add code from a separate M-file (eg 'script.m')
close(R)
Best Answer