help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: About reading binary files


From: Przemek Klosowski
Subject: Re: About reading binary files
Date: Fri, 4 Oct 2019 16:17:33 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1

On 10/3/19 10:48 AM, Samuele Zampini wrote:

attached a bin file I am trying to read.

It should have 3 (or 4) columns and 1000 rows.


You need to know something about the content of the file. It has 6074 bytes, so it's not just plain 1000 binary numbers.

There seems to be some sort of a binary header, followed by what could be 16-bit integers. 

The plot does look somehow reasonable :

plot(fread(fopen('test1.bin'),'int16'))

you can see artifacts from the header and then the data that looks like some sort of noisy measurement.

of course that plot interprets the data as a single column.

What are the expected values that you think should be in this file?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]