dec2bin(d) problem converting

2 ビュー (過去 30 日間)
KHADIJA
KHADIJA 2013 年 10 月 5 日
回答済み: Walter Roberson 2013 年 10 月 6 日
hello, i want to convert a decimal number to a binary number so i use thi comand dec2bin(23) normelly the answer should be lik this : ans = 10111 instead i get that :
Columns 65508 through 65520
0 0 0 0 0 0 0 0 0 0 0 0 0
Columns 65521 through 65533
0 0 0 0 0 0 0 0 0 0 0 0 0
Columns 65534 through 65535
will you please tell me what seems to be the problem, and thanks in advance :)
  5 件のコメント
Jan
Jan 2013 年 10 月 6 日
@KHADIJA: Please post this as an answer and accept it, such that the readers can see, that the problem is solved.
KHADIJA
KHADIJA 2013 年 10 月 6 日
@Jan Simon: i don t know how to do it,will you show me how please

サインインしてコメントする。

回答 (1 件)

Walter Roberson
Walter Roberson 2013 年 10 月 6 日
KHADIJA wrote,
hello, thank you for answering me so quickly, you were right i had the wrong code for the function dec2bin so i had to replace it by a new one. thank you so much again :)

カテゴリ

Help Center および File ExchangeData Type Conversion についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by