Determine meas matrix M