I'm using find_system to find all the subsystems and then strcmp(get_param(subsystem, 'SFBlockType'), 'MATLAB Function') to obtain the MATLAB function blocks. Once I find the block I'm not able to take the code and export to the report. I know that it's possible using slreportgen.report.MATLABFunction, but in that case, to create the report I'm using the DOM API report so I cannot extract the code and write in my report with this class. Does anyone know how can I put the code in my report?
MATLAB: How to insert a code that is in the MATLAB function block of the model in a report
dom.apifind_systemMATLABmatlab functionMATLAB Report Generatorreportreport generatorsimulinkSimulink Report Generator
Related Question
- Has anyone had success in creating a Report generator class to properly fill holes in a Word document
- How to create report programmatically
- How to include annotation text from the Simulink model in the file created by the Simulink Report Generator
- Is it possible to programmatically insert a figure on a form-based report using Simulink Report Generator
Best Answer