  The notion of matching Rota-Baxter algebras was recently introduced by Gao,
Guo and Zhang [{\em J. Algebra} 552 (2020) 134-170] motivated by the study of
algebraic renormalization of regularity structures. The concept of matching
Rota-Baxter algebras generalizes multiple integral operators with kernels. The
same authors also introduced matching dendriform algebras as the underlying
structure of matching Rota-Baxter algebras. In this paper, we introduce
matching relative Rota-Baxter algebras that are also related to matching
dendriform algebras. We define a matching associative Yang-Baxter equation
whose solutions give rise to matching relative Rota-Baxter algebras. Next, we
introduce the cohomology of a matching relative Rota-Baxter algebra as a
byproduct of the classical Hochschild cohomology and a new cohomology induced
by the matching operators. As an application, we show that our cohomology
governs the formal deformation theory of the matching relative Rota-Baxter
algebra. Finally, using multiplicative nonsymmetric operads, we define the
cohomology of a matching dendriform algebra and show that there is a morphism
from the cohomology of a matching relative Rota-Baxter algebra to the
cohomology of the induced matching dendriform algebra. We end this paper by
considering homotopy matching dendriform algebras.
