I would like to convert a binary vector of 24 bits to a single string.
For example, I should get the string: '101010101010101010101010' from this vector: [1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0]
I tried this :
binary_vector = [1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0];
A = num2str(binary_vector);
l = length(A);
And I obtain :
A =
1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0
l =
70
What I don't understand is why my length of A is 70? Shouldn't be 24?