The frequency hop code pulse signal is a new form of pulse compression radar signal, and is of great analysis value. Ambiguity function is a useful tool for designing waveform and analyzing the radar signal. It is complicated to compute ambiguity function of frequency hop code signal and difficult to draw the ambiguity figure. This paper presents a method of computing the ambiguity function via convolution integral and drawing the ambiguity figure by using the Matlab language .