Extract bits function not working as expected
6 ビュー (過去 30 日間)
古いコメントを表示
I'm new to Simulink/Matlab. Currently trying to model a behavior of a ADC and having issues getting the extract bits function to work based on my expectations.
The output from the integer to bit converter is 2bits and I'm using 2 extract blocks to split them each to separate bits before performing more operations on them. However I realize that the top block [1 1] does not extract anything but instead both bits are extracted in the [0 0] block as shown in the results. I'm quite puzzled with this behaviour and hoping that someone could help me out.


2 件のコメント
Walter Roberson
2018 年 9 月 10 日
Is it possible that the value is considered a signed integer? If so then the minimum number of bits to extract is 2.
回答 (1 件)
参考
カテゴリ
Help Center および File Exchange で General Applications についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

