string convert to binary 8
2 views (last 30 days)
Show older comments
how convert string (more than one character, two, three......) to 8 binary
0 Comments
Answers (1)
Walter Roberson
on 25 Aug 2019
bit_vector = reshape((dec2bin(uint8(TheCharacterVector), 8) - '0').', 1, []);
See Also
Categories
Find more on Numeric Types 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!