MATLAB: How to divide 8 bit binary into two 4 bit

binarypartition

For example A=11001111,
i want to break it as A1=1100 and A2=1111.
How it can be done in matlab?

Best Answer

A = '11001111'
A = mat2cell(A, 1, [4, 4]);
celldisp(A)
Related Question