RafaelCastro
Electrical
- Feb 10, 2015
- 4
HI everyone !
I'm doing a program to transform a normal sine wave into a 8 bits signal
I'm just a beginner and i want your help to know if i'm doing it right.
I give you here the algoritm that i think it work
range = 5 % the max of my sin wave
n8 = 8; % number of bits
q8 = range/(2^n8); % quantization interval
quant8=composto/q8;
a8=fix(quant8);
sinalcod8=a8*q8; my final signal
Thanks
I'm doing a program to transform a normal sine wave into a 8 bits signal
I'm just a beginner and i want your help to know if i'm doing it right.
I give you here the algoritm that i think it work
range = 5 % the max of my sin wave
n8 = 8; % number of bits
q8 = range/(2^n8); % quantization interval
quant8=composto/q8;
a8=fix(quant8);
sinalcod8=a8*q8; my final signal
Thanks