From: Wendy on
Hi all,
I am working with bioinformatics toolbox and trying to read in CEL files from a directory. I stored all the CEL file names in a spreadsheet, and the file names are stored in a cell after reading the spreadsheet into matlab. When I try to read the file, the error says the file does not exist, but I am sure the file is in the directory. I wonder if I convert my cell element to string correctly. What might be the reason for the error.

DataDir =' ';
[CellType, SampleInfo] = xlsread(' .xls');
for i = 1;
FileName = mat2str(cell2mat(SampleInfo(i)))
celStruct = affyread(fullfile(DataDir,FileName));
end

Thank you,
Wendy
From: Wendy on

Problem solved. Thank you.


"Wendy " <wlq121(a)gmail.com> wrote in message <hjhinc$h59$1(a)fred.mathworks.com>...
> Hi all,
> I am working with bioinformatics toolbox and trying to read in CEL files from a directory. I stored all the CEL file names in a spreadsheet, and the file names are stored in a cell after reading the spreadsheet into matlab. When I try to read the file, the error says the file does not exist, but I am sure the file is in the directory. I wonder if I convert my cell element to string correctly. What might be the reason for the error.
>
> DataDir =' ';
> [CellType, SampleInfo] = xlsread(' .xls');
> for i = 1;
> FileName = mat2str(cell2mat(SampleInfo(i)))
> celStruct = affyread(fullfile(DataDir,FileName));
> end
>
> Thank you,
> Wendy