How do I convert a string in MATLAB to a binary vector of the ASCII representation of that string?
For example, I want to convert
string = 'Mary had a little lamb';
to a vector looking like:
[0 1 0 0 1 1 0 1 0 1 1 0 0 0 0 1, etc.]
\-------v------/ \-------v------/
M a