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.
Best Answer