Pump encoding is an effective approach to enhance the weak signal detection in distributed Brillouin fiber sensors. In this paper, a new encoding matrix that can improve the detection performance is proposed. Furthermore, a distributed fiber sensor for both single and encoding pump operations is numerically analyzed by using Brillouin-scattering coupled amplitudes equations. The results demonstrate that the matrix can reduce the transmission times for pumping light and simplify the coding process. The power of the scattering signal and the coding gain can be improved with the increasing code length. The detected scattering optical power is almost three orders of magnitude higher than that of the single pulse pump, as the coding length is 31, corresponding to 14.4 % improvement for the coding gain compared with the S matrix encoding method. At the same time, the temperature uncertainty can also be decreased.According to Raman or Brillouin scattering [1, 2] , Brillouin based distributed sensors can monitor both the temperature and the strain simultaneously [3] . As well known, spontaneous Brillouin scattering is so weak that it is hard to be detected. Especially, when the measure distance is increasing, the attenuation of scattering light is increasing as well. Therefore, the performance of the sensors would be seriously decreased. Generally, the detection techniques for scattering light include the direct detection method [4] and the interferometric detection method [5] .The characteristics of the Brillouin frequency shift are used to obtain the scattering light in the interferometric detection which requires a comparatively complex sensor system. Moreover, the direct detection method has a simple system structure with the disadvantage of hardly detecting the weak scattering light. Therefore, the pump encoding methods are proposed to enhance the performance of the systems. In the early stage, the S matrix was used to improve the ability of the traditional optical time domain reflectometer (OTDR) [6] , as well as the distributed Brillouin fiber sensors [7] subsequently. The results show that the direct detection with Brillouin fiber sensors can achieve a better signal to noise ratio (SNR), and a simple structure is available by utilizing the S matrix encoding. Nevertheless, this means has a limitation that the complexity of realization and the transmission time of the encoding light are increasing with the coding length.In this paper, we propose a method of pump encoding to enhance the performance of distributed fiber sensors. According to the analysis of the S matrix encoding method, a novel encoding matrix is presented to get the higher power scattering light and the coding gain. The matrix also has the advantage that the transmission time of the encoding light does not increase with the coding length.The measurement can be achieved by using the temperature effect of spontaneous Brillouin scattering in the distributed Brillouin fiber sensors. The pump light injected into the fiber interacts with the density fluc...