From: John Chow on
I'm able to run Matlab 7.1 in Win7 HP. But when I tried to run this:

Output = [Variable'; fcnMat2Cells(Results)]
OutFile = [CurDir SubjFdr{q} SsnFdr{y} '_aGC.xls']; % Out filename
if exist(OutFile) == 2
delete(OutFile);
end
xlswrite(OutFile, Output);

I encountered this error:
______________________________________________________________________
??? Error using ==> run
Invoke Error, Dispatch Exception:
Source: Microsoft Office Excel
Description: Microsoft Office Excel cannot access the file 'F:\MRC\Research\Projects\RevBike\LW\Pre_S0\Walk'. There are several possible reasons:

• The file name or path does not exist.
• The file is being used by another program.
• The workbook you are trying to save has the same name as a currently open workbook.
Help File: C:\Program Files (x86)\Microsoft Office\OFFICE11\1033\xlmain11.chm
Help Context ID: 0
______________________________________________________________________

Any suggestions?

John