Examples of usage "img2xlsx" function
조회 수: 1 (최근 30일)
이전 댓글 표시
Hello,
I'm trying to use img2xlsx function to add 3 images to an xls file in "Results" folder...
The images are in .jpg format and they are also in "Results" folder as well. The file I want to add them is called "Results.xls" and it's in "Results" folder.
I tried to code this, but it doesn't work...
OutputFolder = 'Results\';
img2xlsx({'img1.jpg';'img2.jpg';'img3.jpg'}, 'results.xls', OutputFolder, 'GraphsSheet');
Thanks! ;)
This is the error I get:
Error using Interface.000208DB_0000_0000_C000_000000000046/Add
Invoke Error, Dispatch Exception:
Source: Microsoft Excel
Description: Impossibile accedere al file. Provare una delle seguenti operazioni:
• Assicurarsi che la cartella specificata esista.
• Assicurarsi che la cartella contenente il file non sia di sola lettura.
• Assicurarsi che il nome di file non contenga i seguenti caratteri: < > ? [ ] : results.xls oppure *
• Assicurarsi che il nome di file o il percorso non contenga più di 218 caratteri.
Help File: xlmain11.chm
Help Context ID: 0
Error in img2xlsx (line 93)
Workbook = invoke(Excel.Workbooks,'Add', ResultFile);
Error in SaveRes2 (line 21)
img2xlsx({'img1.jpg';'img2.jpg';'img3.jpg'}, 'results.xls', OutputFolder, 'GraphsSheet');
댓글 수: 0
답변 (1개)
Image Analyst
2019년 4월 1일
There is no "img2xlsx" function in my MATLAB. I suggest you debug it with the author.
댓글 수: 5
Image Analyst
2019년 4월 2일
Sorry, but I doubt I'd have any better luck finding the author than you. I mean, if he didn't respond to your contact via the link on his submission page, I'd start with a web search and try to locate him that way. Just standard stuff. Good luck.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!