当我运行下面的代码时,出现以下错误:
Cell contents reference from a non-cell array object.
folder
可以带 1 个或多个文件夹
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