any one please give any idea about the following :
Qualtization. Write Matlab code that performs following tasks
1. Quantizes companded waveform into q = 16 and q = 32 different levels on interval (-1,1)
2. Calculates Signal to Quantization Noise Ratio (SQNR) for q = 16 and q = 32
3. Generates following plots
a. Plot of companded and quantized waveform for q = 16
Hi,
Changin an anlog signal to a digital one is not so hard in matlab.
you can use simply th functions round, floor and ceil regarding your application.
an example is:
QuantizedSignal=round(Signal*2^14)/2^14;
in this case output signal would have the same scale as input signal. please note that in your case a single bit is necessary as the sign bit.