Question
I would like to save my Simulink model as a TIFF or JPEG image. However, the following code does not apply to Simulink models: print -smodelname -dtiff
Expert Answer
John Michell
PhD Expert
Answered Sep 11, 2026
This enhancement has been incorporated in Release 2006b (R2006b). For previous product releases, read below for any possible workarounds:
The Simulink window is not a traditional MATLAB figure window; therefore, it cannot be directly saved as a TIFF or JPEG image.
As a workaround, you can try the following:
1. Save the model as a metafile or as a bitmap by using the following command:
modelname %to make the model the current window
Save the model as a meta-file (EMF) by using the following command:
print -smodelname -dmeta outputfilename
Save the model as a bitmap (BMP) by using the following command:
print -smodelname -dbitmap outputfilename
2. If the file is a Windows meta-file, use another program, such as LviewPro, to open the file and resave it as a TIFF image.
If the file is a bitmap, use IMREAD to read the bitmap into MATLAB.
A = imread('filename.bmp','bmp')
Then use IMWRITE to save the file as a TIFF image.
imwrite(A,'filename.tif','tif')
100% Run Guarantee
3-Hour Fast-Track Delivery
Need a Custom Version or Complete Simulation for This Problem?
Our 500+ PhD engineers build, debug, and optimize working MATLAB scripts and Simulink (.slx) models tailored to your exact assignment rubrics with zero plagiarism.
Tested on MATLAB R2024b / R2026a
Turnitin 0% Plagiarism Report
Free 7-Day Revisions Guarantee
Have a different question? Ask here
Related simulink Questions & Solutions
Browse All →
Explore similar technical troubleshooting questions and verified MATLAB solutions:
Ready-to-Run MATLAB & Simulink Projects
Browse All Projects →