Examples of usage "img2xlsx" function

조회 수: 1 (최근 30일)
endystrike
endystrike 2019년 4월 1일
댓글: endystrike 2019년 4월 2일
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');

답변 (1개)

Image Analyst
Image Analyst 2019년 4월 1일
There is no "img2xlsx" function in my MATLAB. I suggest you debug it with the author.
  댓글 수: 5
Image Analyst
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.
endystrike
endystrike 2019년 4월 2일
Thanks,
let's see if someone else has used that function with success! ;)
Have a nice day and thank you for your advices! ;)

댓글을 달려면 로그인하십시오.

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!