Suppose we have a linear represented in the standard state space notation:
$$ \dot{x}(t)=Ax(t)+Bu(t)$$ $$y(t) = Cx(t) + Du(t)$$
In order to get its impulse response, it is possible to take its Laplace transform to get
$$sX=AX+BU$$ $$Y=CX+DU$$
and then solve for the transfer function which is
$$\frac{Y}{U}=C(sI-A)^{-1}B+D$$
Similarly, for a discrete system, the $\mathcal{Z}$-transform of $$ x[n+1]=Ax[n]+Bu[n]$$ $$y[n] = Cx[n] + Du[n]$$
is
$$\frac{Y}{U}=C(zI-A)^{-1}B+D$$
This process seems a bit long and I remember that there is a way to find the impulse response using the state transition matrix which is the solution for $x$ of the first equations of each pair. Does anyone know how to do this?