pic2xls
pic2xls(pic,file,sheet,param)
pic2xls : Inserts a picture into an Excel file
pic: image file name (.gif,.jpg,.bmp,..etc)
file: Excel file name (new or existing)
sheet: sheet name.
param: consists of a row of 4 numbers:
[left top width height]
left: image location from left side (pixels)
top: image location from top side (pixels)
width: image width (pixels)
height: image width (pixels)
Example:
pic = 'tree.jpg';
file = 'file.xls';
pic2xls(pic,file,'Sheet1',[0 0 200 200]);
Cite As
Fahad Al Mahmood (2026). pic2xls (https://uk.mathworks.com/matlabcentral/fileexchange/9209-pic2xls), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Data Import and Analysis > Data Import and Export > Standard File Formats > Spreadsheets >
- MATLAB > External Language Interfaces > COM with MATLAB > Use COM Objects in MATLAB >
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
