How to quantise a sin wave with amplitude between -1 to 1?
Mostra commenti meno recenti
I have to quantise a continuous sin wave into a 16 bit signal and obtain the vector of the quantised signals in the binary form? How to get the binary of a decimal number which might be negative. Can anyone provide me with the code snippet for that?
Risposta accettata
Più risposte (1)
Walter Roberson
il 7 Feb 2014
Modificato: Walter Roberson
il 7 Feb 2014
dec2bin(typecast(int16(floor(sin(t) * 32767)), 'uint16'), 16) - '0'
Categorie
Scopri di più su Descriptive Statistics in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!