Two-dimensional gravity from d = 0 and d = 1 matrix models