Is there any possibility to split H5(Hdf5) File. I am using 3 gb of H5 file and I want to read it on Matlab. I have tried it once but after an Hour also It didn't loaded. Anybody has an idea about it. I would be so thankful.

4 visualizaciones (últimos 30 días)
function [data] = read_hdf5(file,M)
%This function reads the content of hdf5-file.
%M: Number of samples in each data set
hinfo=hdf5info(file);
datasets=hinfo.GroupHierarchy.Datasets;
N=length(datasets);
data=zeros(M,N);
for i=1:N
data(:,i)=hdf5read(datasets(i));
end
end
  7 comentarios
manizheh pourrahmati
manizheh pourrahmati el 14 de Oct. de 2022
I have a h5 file of about 56 GB, and I want to split it to 14 files susing Python. i have never worked with h5 file before and I am a beginner in Python. Could you please provide an step by step instruction?

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Call Python from MATLAB en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by