file that i am reading in loop changes in file
1 ビュー (過去 30 日間)
表示 古いコメント
for idx = 1:length(alfiles)
if contains(alfiles(idx).name,'tx01')
v=v+1;
temp(v)= alfiles(idx);
thsi is where the issues comes up - my alfiles are not always going to be of size 3 - in may bes less or more - how may i modify it
if v ==3
[~, index] = max([temp.datenum]);
files(1) = temp(index);
end
elseif contains(alfiles(idx).name,'tx02')
v=v+1;
temp(v)= alfiles(idx);
if v ==6
[~, index] = max([temp.datenum]);
files(2) = temp(index);
end
採用された回答
その他の回答 (0 件)
参考
カテゴリ
Find more on Inputs in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!