[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: problem to read complex binary file
From: |
Ben Abbott |
Subject: |
Re: problem to read complex binary file |
Date: |
Tue, 02 Dec 2014 10:31:56 -0500 |
> On Dec 2, 2014, at 7:57 AM, alok ranjan <address@hidden> wrote:
>
> Hello All,
>
> I have a .dat (complex binary file) generated from GNU Radio. I am trying to
> convert that file in .mat format so that i can use the same file either inn
> matlab or in octave to further plot the graph or some analysis of the
> contained information.
>
> I am getting an error while i am trying to do the conversion.
>
> Please check below my steps for detailed information:
>
> addpath("/home/alok/gnuradio/gr-utils/");
> data_oct =
> read_complex_binary("/usr/local/share/uhd/examples/usrp_samples.dat");
>
> After the second line i am getting an error
>
> 'read_complex_binary' undefined near line 1 column 12
>
> I am using the octave 3.8.1 version on Ubuntu.
>
>
> please guide me how can i resolve this issue.
>
> OR, there s any other method to open the dat file and save that in octave or
> ascii format .
>
>
> Any help is appreciated.
>
> Regards!!
>
> Alok
The function 'read_complex_binary' is distributed by gnuradio and is not part
of Octave or Matlab. The m-file function and others are at the link below.
http://gnuradio.org/redmine/projects/gnuradio/repository/revisions/master/show/gr-utils/octave
Ben