Matlab Simulink Bit Extraction

I am attempting to use Matlab Simulink to quantize an analog signal and represent each of the quantization level values in binary format. I think I have this part accomplished using the attached Simulink model. I would now like to extract the first 3 bits for each of the binary representations in my time series and place them in their own 'channel' for further processing. I have been trying to use the Bit Extract block, however whenever I try to extract anything but the full range of bits, it fails. Any support would be greatly appreciated! Thank you.

답변 (1개)

Fangjun Jiang
Fangjun Jiang 2016년 4월 22일

0 개 추천

Remove the "Integer to Bit Converter" block.

댓글 수: 3

Colin Ross
Colin Ross 2016년 4월 22일
Hi, thank you for the response. It seems to work when I choose to display the value with the display block (although it doesn't show the entire time series), but when I write to the workspace it stores an integer value?
<<
>>
Colin Ross
Colin Ross 2016년 4월 22일
Colin Ross
Colin Ross 2016년 4월 22일
Basically what I would like to do is the following:
  • Quantize an input sine wave
  • Represent quantization level value in binary format. (e.g. For sine wave max value V_max = 5 => 00000101 (8-bit))
  • Separate the bits into different channels. (e.g. Channel 1: 000 (first 3 bits) Channel 2: 00101 (rest of bits))

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Simulink에 대해 자세히 알아보기

질문:

2016년 4월 22일

댓글:

2016년 4월 22일

Community Treasure Hunt

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

Start Hunting!

Translated by