We have developed a numerical-analytical method of solution to the inverse problem of reconstructing permittivities ofn-sectional diaphragms in a waveguide of rectangular cross section. For a one-sectional diaphragm, a solution in the closed form is obtained and the uniqueness is proved.