Using xlsread with convertSpreadsheetDates in Compiled MATLAB code

조회 수: 2 (최근 30일)
Matthew
Matthew 2013년 8월 21일
답변: Matthew 2013년 10월 10일
I'm creating a compiled Matlab script for analyzing excel data which contains dates. The handy convertSpreadsheetDates function handle which can be passed into the xlsread function appears to cause an error when running the compiled code from the console:
Error using xlsread (line 247)
Function convertSpreadsheetDates does not exist.
Error in importfile (line 36) % this is the calling line for xlsread()
Error in CallingScript (line 29) % this is the calling line for importfile()
MATLAB:narginout:functionDoesnotExist
I've included importfile.m, convertSpreadsheetDates.m, nargin.m, nargout.m in the Shared resources list of the Build tab. I'm running version R2013a. If it matters, importfile.m is located in a subdirectory. What else can I do? I could convert the dates myself, but if the codes already been written, why duplicate work?
Thanks for the help!
  댓글 수: 1
Matthew
Matthew 2013년 10월 9일
Attached is code sample and test file for anyone who'd like to repro this. Just run this through MCR version 4 (the one that comes with R2013a).

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

답변 (1개)

Matthew
Matthew 2013년 10월 10일
Contacted help support (thanks for the great service!). Version R2013b (MATLAB 8.2) has fixed this issue.

카테고리

Help CenterFile Exchange에서 MATLAB Compiler에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by