MATLAB: How NOT remove zeros from binary number

binarymemoryremovestringzeros

Hello,
i've a problem: when i have read binary data from device and when i have store this data in differents variables, MATLAB removed automaticly the first zero from every variable if this one starts with zero. If not starts with zero, all it's ok. I think that MATLAB made this for spare memory…
How could i made for matlab preserve this first zero of each variables?
For example:
Device gives me: 110101 and MATLAB stores 110101
but... if Device gives me: 010101 Matlab stores 10101
Remove the first zero.
Could you help me?
Thanks!

Best Answer

valorsTramaBin_15 = dec2bin(valorsTrama(15,:), 8); %force 8 bits output