Can read binary file, but the result put only in a single column

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)

read it into a 2D array like this:
array2D = fread(fileHandle, [x_size y_size], '*uint8');
You say that x_size = 30.

Categories

Tags

Asked:

on 17 Dec 2012

Community Treasure Hunt

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

Start Hunting!