How to convert a Ascii Text input to Binary Output

8 views (last 30 days)
Hi, i am given an ASCII value as an input and i want to convert it into BINARY Output.
  1 Comment
G F
G F on 11 Nov 2014
Hello Guys,could you tel me the meaning of this command line:-
function rem = binary_rem(input, genpol)
input = [input zeros(1,length(genpol)-1) 0];

Sign in to comment.

Accepted Answer

Star Strider
Star Strider on 11 Nov 2014
Your question is a bit ambiguous, but this may be what you’re looking for:
asv = uint8('A')
asb = dec2bin(asv)
produces:
asv =
65
asb =
1000001
  9 Comments

Sign in to comment.

More Answers (0)

Categories

Find more on Random Number Generation in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!