Uniform midpoint quantizer in matlab

2 views (last 30 days)
raymond
raymond on 10 Mar 2015
Hello sorry to ask because this is a broad question to ask and I don't even know how to begin to approach this but I need to implement a n bit uniform midpoint quantizer in matlab so I need to take generated signal values and round them off to the levels of my n bit quantizer problem is i don't know how to simulate this in matlab I have no clue how I'd for example be able to take a value like .26 a value between the .125 and .375 values for a 3 bit quantizer with a max signal value of amplitude 1 and round it to the nearest value in this case .3750 as far as I can tell matlab has no built in functions to implement this kind of behavior and the only way I can think of doing this would be using loops and logical statements this solution however would be absolutely gigantic and impartial could somebody show me how to please do this properly in matlab

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!