FIR filter weights binary conversion

1 visualización (últimos 30 días)
Maryam Idrees
Maryam Idrees el 15 de Abr. de 2019
I am trying to implement a 25 taps FIR filter in matlab. Some of the filter weights are negative and some are positive, generated by "rcosdesign" command. I have to use these filter weights and inputs for another design that requires binary conversion of these two. My vector is weights=[ 0.0030, 0.0327, 0.0471, 0.0265, -0.0275, -0.0852, -0.0994, -0.0321, 0.1190, 0.3112, 0.4720, 0.5346, 0.4720, 0.3112, 0.1190 , -0.0321, -0.0994, -0.0852, -0.0275, 0.0265, 0.0471, 0.0327, 0.0030, -0.0188]. I want to know how can i convert these values into binary numbers with word length 16. I have read many other answers that suggest typecast and some user defined functions, but these didn't work for me. Especially typecast, it makes my weight vector values zeros.
Any help is really appreciated.

Respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by