FIR filter weights binary conversion
조회 수: 8 (최근 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!