In the case of static magnetic dipolar and electric quadrupolar interactions (inhomogenous broadening) the dependency of the spin echo height at time t = 2τ after a π/2-τ-β pulse sequence on the rotation angle ß of the second rf-pulse is calculated for the spins I=3/2, 5/2, 7/2, 9/2. For each spin I an optimum rotation angle βopt is found out for which the spin echo signal has a maximum. From the measured spin echo lineshape the distribution function of the quadrupole distortion in a solid can be determined. The mean quadrupole distortion can be obtained from the echo width. Detailed calculations in the case of Gaussian and Lorentzian distribution functions are presented.