MATLAB: Ascii to binary

asciibinaryMATLAB

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…

Best Answer

>> dec2bin('home')
ans =
1101000
1101111
1101101
1100101
>> char(bin2dec('1101000'))
ans =
h