discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Problem: Reading a file


From: George Nychis
Subject: Re: [Discuss-gnuradio] Problem: Reading a file
Date: Mon, 28 Jan 2008 22:19:26 -0500
User-agent: Thunderbird 2.0.0.6 (X11/20071022)



Tim Meehan wrote:

I don't have a copy of matlab with me so this is going by memory. Try this in matlab to generate
a file of floats

my_data = rand(1000,1);
fid = fopen("foo.dat","w");
fwrite(fid, my_data, "float32");
fclose(fid)


So close ;)  matlab uses ' instead of "

my_data = rand(1000,1);
fid = fopen('foo.dat','w');
fwrite(fid, my_data, 'float32');
fclose(fid)

Write your data to your file using this method, Jonas.

Thanks Tim.

- George




reply via email to

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