- 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?
158 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Aniket
am 27 Feb. 2013
Kommentiert: Jérôme
am 13 Feb. 2023
How do I save Simlulink model to JPG or any other image formats?
0 Kommentare
Akzeptierte Antwort
Azzi Abdelmalek
am 27 Feb. 2013
Bearbeitet: Azzi Abdelmalek
am 27 Feb. 2013
Manually,
3 Kommentare
Dave
am 9 Apr. 2019
or just straight to jpg:
print(['-s',ModelName],'-djpeg',[ModelName,'.jpg'])
Weitere Antworten (3)
Harish Balaga
am 3 Jul. 2013
Bearbeitet: Harish Balaga
am 3 Jul. 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
2 Kommentare
Nicolas Fernandes
am 20 Nov. 2018
I've tried using this command to save in EPS format, but didn't work. Is there a way to increase the figure resolution?
Jérôme
am 13 Feb. 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
am 5 Feb. 2021
You may use this to save simulink model as image with extension .tiff
print('-sModelName','-dtiff','model.tiff')
0 Kommentare
Siehe auch
Kategorien
Mehr zu Interactive Model Editing finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!