Why do I get an error when using XLSREAD in a BATCH job submitted to a Windows cluster managed by MathWorks Job Scheduler in MATLAB Distributed Computing Server 6.0 (R2012a)?
Show older comments
I am using a Windows cluster managed by MathWorks Job Scheduler.
I have a 'xlsReadTest.m' file is a script that contains a call to XLSREAD as follows:
[numData,textData,rawData] = xlsread('Test_SR.xlsx');
numProc = numel(numData);
results = NaN(size(numData));
parfor loopProc = 1:numProc
results(loopProc) = numData(loopProc) + 20;
end
When I run the 'xlsReadTest.m' script as a batch job with the following command:
batch(schedObj,'xlsReadTest','Matlabpool',31,'FileDependencies', {'xlsReadTest.m','Test.xlsx'});
I obtain the following error message: ERROR: ErrorIdentifier: MATLAB:COM:E2148140012 ErrorMessage: Invoke Error, Dispatch Exception: : Source: Microsoft Office Excel : Description: Microsoft Office Excel cannot access the file '..\..\Test.xlxs'.
If I use XLSREAD in basic mode, I am able to read the data.
Accepted Answer
More Answers (0)
Categories
Find more on MATLAB Parallel Server in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!