convert to binary

조회 수: 8 (최근 30일)
huda nawaf
huda nawaf 2011년 8월 16일
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일
Use the dec2bin function, the result is a string

추가 답변 (1개)

huda nawaf
huda nawaf 2011년 8월 16일
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

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile 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