How to save a part of a Simulink model as image?

조회 수: 9 (최근 30일)
daanav
daanav 2018년 9월 11일
답변: Luca Ferro 2023년 4월 12일
Hello,
In my Simulink model I have created an area around a calculation. The area has a title and description. I can access the contents of the area programmatically. So I can create a document where the title and the description is written. But I have not yet found a way to take the screenshot of the area and its contents programmatically.
Is there a way to only take a screenshot programmatically of the area and not the entire model.
Thanks in advance.

답변 (1개)

Luca Ferro
Luca Ferro 2023년 4월 12일
Probably too late but i'll leave it here for those that might need it:
print('-modelName/subSystemName','-djpeg','-r300','model4.jpeg')
This will save the image as a jpeg at 300pp. You can use other formats such as -dpdf, -dtiff, ...
This > modelName/subSystemName < is just the path to the susbystem

카테고리

Help CenterFile Exchange에서 Interactive Model Editing에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by