simple 16bit signal arithmetic problem
显示 更早的评论
Hello
I have a question about N bit signal arithmetic.
I want to calculate (16bit input 1) - (16bit input 2), but 'adder' or 'sum' block shows weird results.

The blocks subtract like this way: (assuming that the signals are 8 bits for an example)
ex) (0 0 0 1 1 1 0 0) - (1 1 1 1 1 1 1 1) = (-1 -1 -1 0 0 0 -1 -1)
Is there any way to calculate binary codes?
Should I make digital adder?
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Signal Generation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!