Put an image file in an Excel chart


Updated 26 Nov 2018

View License

xlsputimage lets you place an image file inside any excel chart.
You can control the sheet, the location and the extent of the image.
If the sheet does not exist in the file - a new sheet is created.
The default is Sheet1, at C9 for the top-left corner.

In order to send a Matlab plot directly to Excel, it needs to be saved first to a temporary file (SAVEAS command is recommended).

Although designed in R2017b, this code should work properly in most of the previous versions.

Cite As

Noam Greenboim (2023). XlsPutImage (https://www.mathworks.com/matlabcentral/fileexchange/69528-xlsputimage), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2017b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes