Help with H5 Looping
古いコメントを表示
Hello,
I am trying to plot multiple H5 files on one plot so I want to loop thought a folder of H5 files. I am apble to read the data I want from the file I just want to be able to loop through them to make the process faster.
回答 (1 件)
KSSV
2020 年 6 月 9 日
H5files = dir('*.H5'); % give the extension if not it is H5
N = length(H5files) ;
for i = 1:N
thisFile = H5files(i).name ;
% do what you want
end
2 件のコメント
Rachel Lackey
2020 年 6 月 9 日
編集済み: Rachel Lackey
2020 年 6 月 9 日
KSSV
2020 年 6 月 9 日
Replace this line:
N=length(42); %Number of files in the folder
with
N=length(H5files); %Number of files in the folder
カテゴリ
ヘルプ センター および File Exchange で Loops and Conditional Statements についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!