MATLAB: How to read mutlple .h5 files

h5hdf5MATLAB

I need to read data from all .h5 files that are stored in a folder

Best Answer

hfiles = dir('*.h5') ;
N = length(hfiles) ;
% loop for each file
for i = 1:N
thisfile = hfiles(i).name ;
% read the file
end