Scaling the values to specific range
Mostrar comentarios más antiguos
Q=[ 0.0669
0.0383
0.0029
-0.0344
-0.0554
-0.0459
-0.0316
0.0086
0.0392
0.0650
0.0698
0.0478
0.0201
-0.0134
-0.0468
-0.0583
-0.0468
-0.0229
0.0115]
I want to scale the value of Q in range [-(2^13-1),(2^13-1)]
please help
6 comentarios
Harshit
el 21 de Nov. de 2012
Both [(2^13-1),(2^13-1)] are same.
Pat
el 21 de Nov. de 2012
Walter Roberson
el 21 de Nov. de 2012
What limits, if any, are there on the input range of values?
I notice that all of your values, positive and negative, have 0 immediately after the decimal point. Is that characteristic? Should it be assumed that abs() of the values will be strictly less than 0.1 and that the output representation should take that into accout?
Pat
el 21 de Nov. de 2012
Walter Roberson
el 21 de Nov. de 2012
I can't be bothered to research dwt2() to find out what the possible theoretical output ranges are for each possible class of input data. How about if you just state the value ranges and any specific encoding instructions ?
Pat
el 21 de Nov. de 2012
Respuesta aceptada
Más respuestas (1)
Walter Roberson
el 21 de Nov. de 2012
Qscaled = 2^13-1;
(Your permitted range consists of exactly one value, so all numbers must scale to that one value.)
Categorías
Más información sobre Audio I/O and Waveform Generation en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!