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
John Michell answered .
2025-11-20
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')