|
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:
-- ****************************************************************** 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 ****************************************************************** |
[Prev in Thread] | Current Thread | [Next in Thread] |