Hello everyone. I converted 4 into binary and got 100 . my problem is that i want to use this 100 as a decimal but the matlab is obviously treating it as a binary number. Please help
1 回表示 (過去 30 日間)
古いコメントを表示
please help
0 件のコメント
採用された回答
Mischa Kim
2014 年 2 月 28 日
編集済み: Mischa Kim
2014 年 2 月 28 日
You could
my_bindec = str2num(dec2bin(4))/5
ans =
20
0 件のコメント
その他の回答 (1 件)
参考
カテゴリ
Help Center および File Exchange で Data Type Conversion についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!