Filter löschen
Filter löschen

How to write images to excel speadsheet from matlab?

7 Ansichten (letzte 30 Tage)
Mini
Mini am 29 Dez. 2012
Hi there
I was wondering if there's a way to insert rows and columns of images in a excel spreadsheet using matlab. Please help me out. Thank you!
Cheers!

Antworten (1)

Image Analyst
Image Analyst am 29 Dez. 2012
There is no way to export an image from MATLAB to Excel, unless you do some very complicated ActiveX stuff. I put thumbnail images into Excel but I wrote a Visual Basic program to do it. My MATLAB function passes the workbook filename and the image filename to the VB program. The VB program then launches Excel and reads in the workbook, reads in the image file and creates a thumbnail of it, and then finally exports the thumbnail image onto the worksheet. You see an actual image displayed in Excel.
If you want to put just THE VALUES of the image into a workbook, then you can use xlswrite. You won't get an image in the workbook but you will get pixel values (integers or some other type of number) in the Excel cells.

Community Treasure Hunt

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

Start Hunting!

Translated by