|
From: | Ron Economos |
Subject: | Re: [Discuss-gnuradio] Error to read dat/binary file in octave as well in matlab from gnu radio |
Date: | Thu, 04 Dec 2014 22:27:24 -0800 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 |
I am not an Octave expert by any means, but I do have a solution for
you. It's pretty slow, but it does work. filename1 = "samples.cfile"; fid1 = fopen (filename1, "r"); tmpreal = fread (fid1, "float32", 4); fseek(fid1, 4, 'bof'); tmpimag = fread (fid1, "float32", 4); DataIn = complex(tmpreal, tmpimag); best regards, Ron On 12/04/2014 09:59 PM, alok ranjan
wrote:
|
[Prev in Thread] | Current Thread | [Next in Thread] |