discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] how to see the captured dat file in octave or any


From: Thomas Hobiger
Subject: Re: [Discuss-gnuradio] how to see the captured dat file in octave or any other software
Date: Tue, 07 Dec 2010 09:11:02 +0900
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.15) Gecko/20101027 Fedora/3.0.10-1.fc12 Mnenhy/0.8.3 Thunderbird/3.0.10

Hi,

Getting the data into Octave is quite easy

fid=fopen('file.dat');
readsize=1000; % e.g. if you want to read 1000 samples
ir=1:2:2*readsize-1;
ii=2:2:2*readsize;
[val, count] = fread (fid, readsize*2, 'float'); % times 2 for reading I/Q data
s=complex(val(ir),-val(ii));  % put the data into a complex vector
%
% ... some processing here
%
fclose(fid);


Regards,
  Thomas


On 12/07/2010 01:17 AM, abhijeet mate wrote:
Hi,

I am new to gnu radio and I have a dat file (complex or float) captured from file sink which was directly connected USRP.
Can anyone help me with how to see the dat file in octave or any other similar software. Is there any other method to see the content of dat file as i need that data for processing.

Thanks and Regards,
Abhijeet.



_______________________________________________ Discuss-gnuradio mailing list address@hidden http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


-- 
******************************************************************
Dr. Thomas Hobiger
Space-Time Measurement Project
Space-Time Standards Group
New Generation Network Research Center
National Institute of Information and Communications Technology
------------------------------------------------------------------
4-2-1 Nukui-Kitamachi, Koganei
184-8795 Tokyo
Japan
------------------------------------------------------------------
email:  address@hidden
phone:  ++81-042-327-7561
fax:    ++81-042-327-6664
------------------------------------------------------------------
homepage (priv.): http://www.hobiger.org
****************************************************************** 

reply via email to

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