discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Help: How to convert a *.mat file to binary file?


From: Karthik Vijayraghavan
Subject: Re: [Discuss-gnuradio] Help: How to convert a *.mat file to binary file?
Date: Fri, 7 Nov 2008 08:54:51 -0800

On Fri, Nov 7, 2008 at 3:58 AM, Jorg Lotze <address@hidden> wrote:
On Fri, 2008-11-07 at 02:06 -0800, slimchao wrote:
> Hallo Everyone,
>
> I have generated some samples of a sinesoid from Matlab and want to convert
> it to a binary file and use it as a source signal to the LFTX daughterboard.
> Can you tell me how i do to convert it?
>
> Thanks a lot,
>
> Chao

Use the MATLAB functions fopen, fwrite, fclose to write your data in
binary format to a file that can be read by gr.file_source. Choose 32bit
floats for real data, write real,imag,real,imag,... for complex data.
The MATLAB manual is your friend. ;)

or you can use one of the programs in gnuradio-core/src/utils/write_float_binary.m etc

Karthik
 


reply via email to

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