Why the function "bi2de" only returns non-negative integers, when the description says it returns non-negative real numbers!
1 次查看(过去 30 天)
显示 更早的评论
I read that the function bi2de takes any binary vector - "a vector composed of only zeros and ones" and returns a non-negative real number. But, I tried it many times it returns positive integers!
0 个评论
回答(1 个)
Walter Roberson
2019-9-1
Not sure where you are reading that. The document says
d =bi2de(b) converts a binary row vector b to a nonnegative decimal integer.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 String 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!