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.
On 12/30/2015 12:04 PM, 13540652881
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?
[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 :)
Sent from my Android device with K-9 Mail. Please excuse my