Can read binary file, but the result put only in a single column
Show older comments
Dear friends,
I read the public data file: poes_n14_19960101.bin from NOAA http://satdat.ngdc.noaa.gov/sem/poes/data/full/1996/noaa14/.
I use the command :
fid = fopen('poes_n14_19960101.bin','r'); A = fread(fid);
the result put in A only in a single column, but actually the structure of the data must more than 30 columns.
Can somebody explain the command to read the binary file in put the result in its original structure (with column header)
Thanks
Answers (1)
Image Analyst
on 17 Dec 2012
read it into a 2D array like this:
array2D = fread(fileHandle, [x_size y_size], '*uint8');
You say that x_size = 30.
1 Comment
Walter Roberson
on 17 Dec 2012
You will probably need to transpose the array afterwards.
Categories
Find more on Variables in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!