How to save Simulink model as picture?

I have a simulink model. i want to save that model into different picture formats like .jpeg, .tif etc.. Is it possible?

 Accepted Answer

use
ModelName % to open the model
print('-sModelName','-dtiff','model.tiff')
to save ModelName.mdl in TIFF format. Image name will be model.tiff

4 Comments

use -djpeg & -dpng for JPEG and PNG formats
I did this. But where image get saved?
It will get saved to your current working directory

Sign in to comment.

More Answers (4)

breathi
breathi on 18 Feb 2019
Since maybe others will stumble upon this thread:
I simply used "File > Print > Print" or (Ctrl+P)
which will print a high resolution PDF of the systems you want.

2 Comments

Definitely best choice, thank you!
If you want this to be automatic, a PDF can also be generated with the print function:
print('-sModelName', '-dpdf', 'model.pdf')

Sign in to comment.

The easiest and the possible method is to resize the the modelling window and take a snap of the model.

Categories

Find more on Modeling in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!