When using "Export to PDF" from the Live Editor, how can I include the diagram of a Simulink file?

조회 수: 2 (최근 30일)
I am using R2019a and R2018a at school.
I have tried using the following during Export to PDF:
open('Example.slx')
The way this works for a regular .m file is that the Simulink file must be closed before clicking on "Publish to PDF". Following this procedure of closing the Simulink file, then publishing the .m code will yield a PDF which includes the diagram contained within the Simulink file 'Example.slx'. This procedure, however, does not work while using the Live Editor. Everything else will publish, but the block diagram will not be there. Note that the Live Editor .mlx file allows "Export to PDF", as opposed to the .m file which allows "Publish to PDF".
My current work around is to take screen shots and paste them into the script of the live editor. However, I would like to know if there is a command based way to include the block diagram when clicking "Export to PDF".
The reason I think it is possible is because of what I see on this page, just past halfway down:
When using "Export to PDF" from the Live Editor, how can I include the diagram of a Simulink file?

답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulink Report Generator에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by