We solve the inverse problem of finding frequency-dependent complex permittivity of a multi-sectional dielectric diaphragm in a waveguide of rectangular cross section from the transmission coefficient measured at different frequencies. Based on the developed recursive method we perform a detailed analysis for one-, two- and three sectional diaphragms