when I run the code below, I got the following error :
Cell contents reference from a non-cell array object.
folder can take 1 or several folders
for x=1:numel(folder)
y{x} = fullfile(folder{x},'Status.xml');
getFile = fileread(char(y{x}));
content{x} = strtok(getFile ,';');
end
>>whos folder
Name Size Bytes Class Attributes
folder 1x1 941 struct
>> numel(folder)
ans=
1
ybefore the loop asy={}? - Danfolderis not defined when you run your code - Shai>> which folderand>> class(folder)and see what the output you get. - Shainumel(folder)and notfolder{x}. Or am I wrong? (It might of course be defined as something else than a cell array.) - Stewie Griffinfolder? What are the entries in folder?folder.a,folder.b? If you have several folders, would that be:folder(1).a,folder(2).aetc? - Stewie Griffin