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
发送时间:2015-12-30 18:46
主题:Re:
[Discuss-gnuradio] gr-lte recorded files
抄送:
"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
--
Sent from my Android device with K-9 Mail. Please excuse my
brevity.
|