fmt = repmat('%s', 1, 360);
datFields = fieldnames(dat);
folderFields = fieldnames(foldername);
for i = 1:length(datFields)
a = datFields{i};
a2 = folderFields{i};
aFields = fieldnames(dat.(a));
for j = 1:length(aFields)
b = aFields{j};
filepath = fullfile(foldername.(a2), dat.(a).(b));
DLG.(a).(b) = cell(1, length(dat.(a).(b)));
for k = 1:length(dat.(a).(b))
fid = fopen(filepath{k});
C = textscan(fid,fmt,'Delimiter','\t','CollectOutput',true);
fclose(fid);
DLG.(a).(b){k} = C{1};
end
end
end
4 件のコメント
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/340341-what-s-the-upper-limit-for-how-much-data-can-be-stored-in-a-structure#comment_454030
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/340341-what-s-the-upper-limit-for-how-much-data-can-be-stored-in-a-structure#comment_454030
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/340341-what-s-the-upper-limit-for-how-much-data-can-be-stored-in-a-structure#comment_454033
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/340341-what-s-the-upper-limit-for-how-much-data-can-be-stored-in-a-structure#comment_454033
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/340341-what-s-the-upper-limit-for-how-much-data-can-be-stored-in-a-structure#comment_454044
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/340341-what-s-the-upper-limit-for-how-much-data-can-be-stored-in-a-structure#comment_454044
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/340341-what-s-the-upper-limit-for-how-much-data-can-be-stored-in-a-structure#comment_454156
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/340341-what-s-the-upper-limit-for-how-much-data-can-be-stored-in-a-structure#comment_454156
サインインしてコメントする。