How to read mutlple .h5 files

조회 수: 1 (최근 30일)
Manisha Srinivas
Manisha Srinivas 2020년 3월 16일
댓글: KSSV 2020년 3월 27일
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개)

카테고리

Help CenterFile Exchange에서 HDF5에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by