A process of mode matching in a chaotic speckle pattern without a reference beam responsible for the formation of a holographic grating was studied experimentally and theoretically. Our approach was based on measuring the amplitudes and phases of the Hermite-Gauss (HG) and Laguerre-Gauss (LG) modes in a speckle pattern formed by the radiation of a multimode gradient fiber. The speckle pattern was formed in a hologram of a spatial light modulator using a multimode gradient fiber model while taking into account the mode and polarization dispersion, as well as random phase jumps of each eigenmode. We managed to match 210 modes of the speckle pattern and restore not only the original pattern, but also each structured LG mode and the entire chain of HG eigenmodes.