FIR filter weights binary conversion
1 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Filter Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!