Re: [Discuss-gnuradio] How to save a matrix of integers into a file using GNU Radio

2014-09-15 Thread Hoang Ngo-Khac
t i = 0; i < noutput_items * d_vlen; i++) {d_data.push_back (iptr[i]); if (((i+1)%10) == 0) fw<<(int) d_data[i]< Date: Fri, 12 Sep 2014 10:46:32 +0200 > From: martin.br...@ettus.com > To: discuss-gnuradio@gnu.org > Subject: Re: [Discuss-gnuradio] H

Re: [Discuss-gnuradio] How to save a matrix of integers into a file using GNU Radio

2014-09-12 Thread Martin Braun
In the Python domain, you have lots of tools at your disposal, such as Pickle (you can even use scipys io module to write .mat files if you like). If you are using PMTs, you can use the metadata file sink. M On 09/12/2014 09:21 AM, Hoang Ngo-Khac wrote: > Dear all, > > I want to save a matrix o

[Discuss-gnuradio] How to save a matrix of integers into a file using GNU Radio

2014-09-12 Thread Hoang Ngo-Khac
Dear all, I want to save a matrix of integers into a file, similar to .mat file in MATLAB. To be more specific, my desire block should receive a stream of integers, convert it to MxN matrix and save this matrix so that I can get this data for further process after the flow graph stops. Could yo