We extend the classical scalar pressure function to the new setting of matrix-valued functions and investigate the differentiability of such functions. The result is used to consider the multifractal structure of self-similar measures generated by iterated function systems with overlaps.