pic2xls

版本 1.0.0.0 (1.8 KB) 作者: Fahad Al Mahmood
This function inserts a picture into an Excel file
3.8K 次下载
更新时间 2005/12/12

查看许可证

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]);

引用格式

Fahad Al Mahmood (2024). pic2xls (https://www.mathworks.com/matlabcentral/fileexchange/9209-pic2xls), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R14SP1
兼容任何版本
平台兼容性
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0