- 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?
224 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Aniket
el 27 de Feb. de 2013
Comentada: Bharath
el 30 de Ag. de 2024
How do I save Simlulink model to JPG or any other image formats?
0 comentarios
Respuesta aceptada
Azzi Abdelmalek
el 27 de Feb. de 2013
Editada: Azzi Abdelmalek
el 27 de Feb. de 2013
Manually,
3 comentarios
Dave
el 9 de Abr. de 2019
or just straight to jpg:
print(['-s',ModelName],'-djpeg',[ModelName,'.jpg'])
Más respuestas (3)
Harish Balaga
el 3 de Jul. de 2013
Editada: Harish Balaga
el 3 de Jul. de 2013
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 comentarios
Jérôme
el 13 de Feb. de 2023
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
el 5 de Feb. de 2021
You may use this to save simulink model as image with extension .tiff
print('-sModelName','-dtiff','model.tiff')
0 comentarios
Ver también
Categorías
Más información sobre Image Processing Toolbox en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!