Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

help me with quantization in Matlab code, please!

Status
Not open for further replies.

jehanfit

Junior Member level 2
Joined
Jan 1, 2008
Messages
20
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,400
quantazition

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
 

Re: quantazition

look for quantizer help in Matlab
 

quantazition

Digital signal processing by john G proakis page number 21 contain many help for concept clarification and than use mlab help
 

quantazition

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.

Hope it helped
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top