How to binarize the character and put it in sequence of binary codes?
Show older comments
first read the charater string or read from the *.txt file then convert it into binary then put it in a sequence of binary
Answers (1)
Walter Roberson
on 24 Apr 2017
S = fileread('YourFile.txt');
reshape( (dec2bin(S) - '0').', 1, [])
Categories
Find more on Image Type Conversion 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!