Converting decimal to binary and vise versa
古いコメントを表示
Hello Matlab Community,
I have a problem. I want to create a function that converts the decimal POSITIVE number that the user gives(maximum number that the user can give is 255) to binary(8-bit accuracy for every number from 0 to 255) and also another function that takes a binary number (max: 11111111 = 255) and converts it to decimal. I'd like to use the ''for'' loop and not functions of matlab like ''dec2bin'' or ''bin2dec''.I've tried a lot but still something doesn't work.
Thanks in Advance
5 件のコメント
James Tursa
2018 年 1 月 9 日
Please post what you have tried so far and then we can make suggestions.
John Dimopoulos
2018 年 1 月 9 日
編集済み: John Dimopoulos
2018 年 1 月 9 日
John Dimopoulos
2018 年 1 月 9 日
編集済み: John Dimopoulos
2018 年 1 月 9 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Axes Appearance についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!