MATLAB: Are images not exported using PRINT to Adobe Illustrator file format using MATLAB 7.11 (R2010b)

MATLABsaveas

When exporting to Adobe Illustrator format, images are not included. For example,
load clown;
imshow(X,map);
print(gcf, '-dill', 'test.ai');
will result in a file that does not contain the clown image.

Best Answer

To workaround this issue, export your figure to pdf, postscript or encapsulated postscript format, and then import the file you saved into Adobe Illustrator. For example,
load clown;
imshow(X,map);
print(gcf, '-depsc2', 'test.eps')