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 (2021). 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!