MATLAB: How to read different bits from a binary file

binary daradifferent bits

Hi. I am trying to read a binary file with MATLAB which contains different bits (8-bits and12-bits).
I read stream 1 easily with ('*uint8'). But can you help me to read stream 2 and 3 from the binary file, please?

Best Answer

Just employ: 'unit16' instead of 'uint8'.