Generating binary numbers from signal
Afficher commentaires plus anciens
Hello
I would like to generate a sequence of binary numbers(16 bit).
I can get the variable from this:
Bit it is a variable in double precision, and the sample rate is too high. I would like to get a signal like this as in the attatched picture, but with 16 samples per period, so about 36 oscillations and 576 samples, time information I don't need.
For example this is a single period of a sine wave:
1000000000000000
1011000011111011
1101101010000010
1111011001000001
1111111111111111
1111011001000001
1101101010000010
1011000011111011
1000000000000000
0100111100000100
0010010101111101
0000100110111110
0000000000000000
0000100110111110
0010010111010111
0100111100000100
I would like to get something like this but for the attatched image.
Can I downsample the variable and export it as binary numbers somehow?
Thanks in advance...

Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Multirate Signal Processing dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!