Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
file not found

Subject: file not found

From: Wendy

Date: 24 Jan, 2010 13:42:04

Message: 1 of 2

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

Subject: file not found

From: Wendy

Date: 24 Jan, 2010 13:57:04

Message: 2 of 2


Problem solved. Thank you.


"Wendy " <wlq121@gmail.com> wrote in message <hjhinc$h59$1@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

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us