fopen for multiple binary files
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
I have to read Binary files in matlab , I have used following codes to open file
file='D:\.....cmorph\CMORPH_V1.0_ADJ_0.25deg-DLY_00Z_20090620';
a=fopen(file);
b=fread(a,'float');
day1=reshape(b,1440,480);
It works and I have output of day1 is matrix 1440x480x1.
Now I want to open and read all binary file of folder (365 files) to create the matrix of all days (1440x480x365).
How can I do that?
5 comentarios
Walter Roberson
el 17 de Jun. de 2019
projectdir = 'D:\.....cmorph';
myfilename = fullfile(projectdir, sprintf('cm2001%04d', k))
Respuestas (0)
Ver también
Categorías
Más información sobre Audio and Video Data 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!