title: MATLAB converting a vector of values to uint32
body: <p>I have a vector containing the values 0, 1, 2 and 3. What I want to do is take the lower two bits from each set of 16 elements drawn from this vector and append them all together to get one uint32. Anyone know an easy way to do this?</p>
  
  <p>Follow-up: What if the number of elements in the vector isn't an integer multiple of 16?</p>