How to read mutlple .h5 files

1 次查看(过去 30 天)
I need to read data from all .h5 files that are stored in a folder

采纳的回答

KSSV
KSSV 2020-3-16
hfiles = dir('*.h5') ;
N = length(hfiles) ;
% loop for each file
for i = 1:N
thisfile = hfiles(i).name ;
% read the file
end
  4 个评论
Manisha Srinivas
Manisha Srinivas 2020-3-27
hello sir ,could you explain the detailed code of how to intialize an array
KSSV
KSSV 2020-3-27
Storing huge data might lead to memory full problem. Try to load one file and process it what you want and store the required output.
An array of size m*n can be intialized using:
A =zeros(m,n) ;

请先登录,再进行评论。

更多回答(0 个)

标签

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by