Hello Kevin, as explained, data isn't stored as "a + bi"; the fact that the two numbers "a" and "b" are interpreted as "real" and "imaginary" of the same complex number shouldn't be stored -- that is implicit. Hence, yes, you just store abababababab..., because the "+" and the "i" is implicit. Also, otherwise you would have to come up with a special scheme of encoding "+" and "i"; those aren't numbers, so they naturally don't work out well for computers.
Best regards, Marcus On 12/30/2015 12:04 PM, 13540652881 wrote: > thank you ,Marcus. you are very warm-hearted. another question > is,what's the data type of the "gr_complex"? Is the data stored as > "a+bi" or stored as a and b alternatively? what's more ,I am a newer > to gnuradio,recently I am doing some research work on the gnuradio > with a usrp N210. I try to write some C++ blocks, but I can't find the > C++ APIs. so I come across of some difficulties with the coding.Do you > have some ideas about how to write the blocks? > > Best wishes! > ------------------------------------------------------------------------ > Kevin > ------------------------------------------------------------------------ > *发件人:*Marcus Müller <[email protected]> > *发送时间:*2015-12-30 18:46 > *主题:*Re: [Discuss-gnuradio] gr-lte recorded files > *收件人:*"kevin_L"<[email protected]> > *抄送:* > > "a+bi" is only the interpretation of what is stored, namely a and b, > alternating. If you did everything right, your MATLAB program would > store the samples in exactly that format. We don't have the MATLAB > program you use, so it's up to you to verify you're reading the data > you think you are writing :) > > Best regards, > Marcus > > Am 30. Dezember 2015 02:44:08 MEZ, schrieb kevin_L <[email protected]>: > > Hi,johannes,thank you for your reply.Another question bothers me,that is > : > what's the type of your input of the "lte_top_block_siso? The recorded > samples from the usrp N210 is the type of complex float 32 with the I/Q > signals placed alternative. But the recorded samples from the matlab tools > is complex with the type of > "a+bi",should I do some changes to the recorded samples from the usrp N210 > to match the input of the flowgragh? > > > > -- > View this message in context: > http://gnuradio.4.n7.nabble.com/gr-lte-recorded-files-tp57482p57557.html > Sent from the GnuRadio mailing list archive at Nabble.com > <http://Nabble.com>. > > ------------------------------------------------------------------------ > > Discuss-gnuradio mailing list > [email protected] > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio > > -- Sent from my Android device with K-9 Mail. Please excuse my brevity.
_______________________________________________ Discuss-gnuradio mailing list [email protected] https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
