string convert to binary 8
显示 更早的评论
how convert string (more than one character, two, three......) to 8 binary
回答(1 个)
Walter Roberson
2019-8-25
bit_vector = reshape((dec2bin(uint8(TheCharacterVector), 8) - '0').', 1, []);
类别
在 帮助中心 和 File Exchange 中查找有关 Cell Arrays 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!