Files
2025-06-04 14:13:22 +08:00

9 lines
246 B
Matlab

function add_fig(rpt,title_label)
savefig(gcf,title_label);
fig = mlreportgen.report.Figure();
fig.Snapshot.Caption = title_label;
fig.Snapshot.Height = '5in';
fig.SnapshotFormat = 'png';
add(rpt,fig);
delete(gcf);
end