Respuesta aceptada

KSSV
KSSV el 16 de Mzo. de 2020

1 voto

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

4 comentarios

Manisha Srinivas
Manisha Srinivas el 16 de Mzo. de 2020
Hello SIr,Thank you Sir , I have executed the code it is not showning any error but Iam unable to read the data stored in the .h5 files
My h5 files consist of huge data related to atmospheric parameters(Eg:3DSND_01MAY2018_0000_L2B_SA1.h5)
I would like to read all the data stored in different .h5 files that are stored in a folder using for loop
KSSV
KSSV el 16 de Mzo. de 2020
You need to initialize the array before loop.
hello sir ,could you explain the detailed code of how to intialize an array
KSSV
KSSV el 27 de Mzo. de 2020
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) ;

Iniciar sesión para comentar.

Más respuestas (0)

Productos

Etiquetas

Preguntada:

el 16 de Mzo. de 2020

Comentada:

el 27 de Mzo. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by