this code give dec output not binary why???
情報
この質問は閉じられています。 編集または回答するには再度開いてください。
古いコメントを表示
this code give dec output not binary why?? here is link of code
1 件のコメント
dpb
2015 年 11 月 19 日
Guess you'll have to ask the author...
回答 (1 件)
Walter Roberson
2015 年 11 月 19 日
0 投票
It does not give decimal output. It returns a character array in which each position is '0' (the character) or '1' (the character), which is one of the several ways of representing binary.
MATLAB does not have a data type which is "binary", but all of the numeric data types together with logical() and char() are internally represented as binary.
You need to indicate what you want the class() of the output of the routine to be and what value you want to use to represent binary 0 and what value you want to use to represent binary 1.
0 件のコメント
この質問は閉じられています。
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!