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?

 Réponse acceptée

Harish Balaga
Harish Balaga le 3 Juil 2013

11 votes

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 commentaires

Harish Balaga
Harish Balaga le 3 Juil 2013
use -djpeg & -dpng for JPEG and PNG formats
Prasad Joshi
Prasad Joshi le 9 Août 2016
I did this. But where image get saved?
Very helpfull, thanks!
Bryce Moyers
Bryce Moyers le 18 Sep 2018
It will get saved to your current working directory

Connectez-vous pour commenter.

Plus de réponses (4)

breathi
breathi le 18 Fév 2019

5 votes

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 commentaires

Carlos Pérez
Carlos Pérez le 3 Nov 2020
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')

Connectez-vous pour commenter.

Jacob Thomas
Jacob Thomas le 14 Nov 2023

0 votes

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

Catégories

En savoir plus sur Modeling dans Centre d'aide et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by