Updated 26 Nov 2018
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.
Noam Greenboim (2023). XlsPutImage (https://www.mathworks.com/matlabcentral/fileexchange/69528-xlsputimage), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.