How do I save Simlulink model to JPG or any other image formats?

94 次查看(过去 30 天)
How do I save Simlulink model to JPG or any other image formats?

采纳的回答

Azzi Abdelmalek
Azzi Abdelmalek 2013-2-27
编辑:Azzi Abdelmalek 2013-2-27
Manually,
  1. Open your model
  2. click on edit
  3. copy model to clipboard
  4. in paint past your image
  3 个评论

请先登录,再进行评论。

更多回答(3 个)

Harish Balaga
Harish Balaga 2013-7-3
编辑:Harish Balaga 2013-7-3
as Azzi Abdelmalek said above, print command can be used. And one can directly save it in required fomat in single command. (no need to use imead, imwite commands). Example: use
ModelName % to open the model
print('-sModelName','-dtiff','model.tiff')
to save ModelName.mdl in TIFF format. Image name will be model.tiff
replace -dtiff with -djpeg for saving the model in jpeg format
  3 个评论
Jérôme
Jérôme 2023-2-13
You can select the resolution with the resolution parameter:
print('-sModelName', '-dpng', 'model.png', 'r0') % Screen resolution, same as without parameter
print('-sModelName', '-dpng', 'model.png', 'r300') % Resolution of 300 dots per inch
Instead of 300, you can put what you want.

请先登录,再进行评论。


fathi jamila
fathi jamila 2020-4-19
How can i read image SLC by matlab ?

Anil Chowdary Tummala
You may use this to save simulink model as image with extension .tiff
print('-sModelName','-dtiff','model.tiff')

类别

Help CenterFile Exchange 中查找有关 Modeling 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by