- Open your model
- click on edit
- copy model to clipboard
- in paint past your image
How do I save Simlulink model to JPG or any other image formats?
222 次查看(过去 30 天)
显示 更早的评论
How do I save Simlulink model to JPG or any other image formats?
0 个评论
采纳的回答
Azzi Abdelmalek
2013-2-27
编辑:Azzi Abdelmalek
2013-2-27
Manually,
更多回答(3 个)
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
2023-2-13
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.
Anil Chowdary Tummala
2021-2-5
You may use this to save simulink model as image with extension .tiff
print('-sModelName','-dtiff','model.tiff')
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!