Radar target imaging can provide important information for target monitoring and recognition. In order to reduce the data amount and save radar resources, the target imaging methods based on compressed sensing have received extensive attention. In these methods, the measurement matrix will directly affect the target imaging quality and data down-sampling rate. However, most of the existing researches on measurement matrix optimization did not take into account the full use of target characteristic information and the internal consistency between the measurement matrix structure and the data sampling process, which makes it difficult to obtain the optimal imaging quality and down-sampling rate. To solve the above problems, this paper makes full use of the target imaging prior information, and takes the minimum dimension of the measurement matrix and the maximum similarity between the obtained image and expected image as the goal of measurement matrix optimization. On this basis, aims at the kind of signal which is composed of a group of sub-pulses with stepped frequency, a joint optimization model of measurement matrix and imaging performance based on the target imaging prior is established with the consideration of the 0-1 constraint of the measurement matrix structure caused by the physical observation process of the sparse stepped frequency signals. And then the corresponding sparse reconstruction algorithm is proposed. Thus, the optimal measurement matrix and high-resolution imaging results can be obtained, and the radar data down-sampling rate can be improved significantly. Simulation results indicate the effectiveness of the proposed method.