function v = littleEndianValue(rawBytes) v = 0; for i = 1:length(rawBytes) v = v + bitshift(rawBytes(i), 8 * (i-1)); end