Community Profile

photo

prince kumar


Active since 2019

Followers: 0   Following: 0

Statistics

  • First Answer

View badges

Feeds

View by

Answered
Converting binary to decimal and vice versa, please help!!
n=input('input binary no.='); n=int2str(n); s=0; for i=1:numel(n) s=s+(str2num(n(i))*(2.^(numel(n)-i))); end s

4 years ago | 0