hi, I need function convert integer to binary then alphabet.
what I must use to get that? thanks

1 件のコメント

Image Analyst
Image Analyst 2011 年 8 月 16 日
What do you mean by "alphabet"?

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

 採用された回答

Paulo Silva
Paulo Silva 2011 年 8 月 16 日

0 投票

Use the dec2bin function, the result is a string

その他の回答 (1 件)

huda nawaf
huda nawaf 2011 年 8 月 16 日

0 投票

thanks, can I get binary number with fixed length? say with 10 bits for all numbers, then can serve my work
thanks

2 件のコメント

Paulo Silva
Paulo Silva 2011 年 8 月 16 日
dec2bin(DecimalValue,nbits)
example
dec2bin(63,10)
Walter Roberson
Walter Roberson 2011 年 8 月 16 日
Read the dec2bin documentation. Even R13SP2 had the necessary feature. http://www.mathworks.com/help/releases/R13sp2/techdoc/matlab.html

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

カテゴリ

ヘルプ センター および File Exchange で Data Type Conversion についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by