How to create numeric array from a string in Matlab?
For example I have such a string:
>> str = dec2bin(7);
s = 111
I need the array [1 1 1]
. How to do it?
I see strread
function strread
but I get difficulties to use it with non-space string input.