- 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?
93 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
How do I save Simlulink model to JPG or any other image formats?
0 Commenti
Risposta accettata
Azzi Abdelmalek
il 27 Feb 2013
Modificato: Azzi Abdelmalek
il 27 Feb 2013
Manually,
3 Commenti
Trig
il 9 Apr 2019
or just straight to jpg:
print(['-s',ModelName],'-djpeg',[ModelName,'.jpg'])
Più risposte (3)
Harish Balaga
il 3 Lug 2013
Modificato: Harish Balaga
il 3 Lug 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 Commenti
Jérôme
il 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
il 5 Feb 2021
You may use this to save simulink model as image with extension .tiff
print('-sModelName','-dtiff','model.tiff')
0 Commenti
Vedere anche
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!