  Orthogonal and symplectic matrix integrals are investigated. It is shown that
the matrix integrals can be considered as a $\tau$-function of the coupled KP
hierarchy, whose solution can be expressed in terms of pfaffians.
