MATLAB: Is it possible to programmatically insert a figure on a form-based report using Simulink Report Generator

form-basedreport generatorSimulink Report Generatortable

By programmatically, what I was specifically thinking about was using the "Evaluate MATLAB Expression" component from the Report Explorer. I've figured out how to add a table programmatically to a new report that was also created programmatically, but I can't figure out how to add a table to a report created via the Report Explorer.
What I'm trying to achieve is for each Simulink diagram, I'd like a table that shows all Constant blocks and their properties. These Constant blocks will almost always be using a variable from a Data Dictionary, so I'd like to display those values on the table as well.
Because the table is so complex relative to the Simulink Report Generator components, I figured it would have to be done programmatically. I'm open to any other solutions though.

Best Answer

Hi Gerardo,
We highly recommend using the programmatic Report API over the Report Explorer to generate custom Simulink reports.
Report API provides reporters like slreportgen.report.SimulinkObjectProperties to reports on block properties, slreportgen.report.ModelVariable to report on variables used by a model, and slreportgen.report.DataDictionary to report on data dictionary content.
Below links can be helpful to learn more and get you started:
-Rahul
Related Question