访问单元格MATLAB

时间:2013-11-13 09:07:17

标签: matlab

for m=1:numel(myFolder)

end


for x = 1:numel(myFiles)  %
    for j=1:numel(myFolder)            
        eachFile{x}{j} = dir(myFiles{x}{j});            
    end
end

任何想法?

1 个答案:

答案 0 :(得分:1)

这应该有效

for x = 1:numel(myFiles)
      for y = 1:numel(myFiles{x})
          eachFile{x}{j} = dir(myFiles{x}{y}); 
      end
end