hello there..
i'd like to convert a text(ascii) to binary by matlab...
for example , word of home to binary code... how can i do this by matlab??? pls help me out...

 Accepted Answer

Andy
Andy on 11 May 2011
>> dec2bin('home')
ans =
1101000
1101111
1101101
1100101
>> char(bin2dec('1101000'))
ans =
h

3 Comments

osman yurdakul
osman yurdakul on 11 May 2011
i really thank you ;)
i would like to convert binary into ASCII. please help me how can i do??
AdamG2013468
AdamG2013468 on 11 Sep 2019
Not suprisingly, there's a function called bin2dec() for that.

Sign in to comment.

More Answers (1)

Rahanuma Tasnim
Rahanuma Tasnim on 3 Aug 2021

0 votes

Write a function to convert 952 into binary(ASCII) and show the digital signal considering AMI

Categories

Products

Community Treasure Hunt

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

Start Hunting!