The scattering of a TE-polarized wave from a perfectly conducting wedg
e with one of its faces loaded with cavities is considered. The propos
ed formulation reduces the analysis of the original problem to two sim
pler configurations: one concerning the geometry of the corrugation (i
nternal problem) and one concerning the geometry of the perfectly cond
ucting wedge (external problem). By resorting to a suitable numerical
technique, it is possible to account for arbitrarily shaped corrugatio
ns filled with inhomogeneous material. Numerical results demonstrate t
he validity of the technique and its applicability to general shape co
rrugations. The analysis of corrugated horns is considered and results
are shown that demonstrate the flexibility of the procedure to analyz
e horns with arbitrarily shaped corrugations.