MATLAB: How to include a model snapshot into published report in Simulink 7.8 (R2011b)

simulink

I want to include a snapshot of my model and a subsystem in the published code. I do not have Simulink Report Generator. How can I do this?

Best Answer

Include the line open_system('modelname') and open_system('modelname/Subsystem') in the code being published. Make sure model is not open before publishing. Make sure subsystem does not have a mask.