MATLAB Answers

Why the function "bi2de" only returns non-negative integers, when the description says it returns non-negative real numbers!

4 views (last 30 days)
Cantor Set
Cantor Set on 1 Sep 2019
Answered: Walter Roberson on 1 Sep 2019

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 Comments

Sign in to comment.

Answers (1)

Walter Roberson
Walter Roberson on 1 Sep 2019
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 Comments

Sign in to comment.

Sign in to answer this question.