I'm going to transform a state space model:
$$\dot{x} = Ax + Bu \\ y = Cx + Du$$
Into a transfer function: $$G(s) = \frac{Y(s)}{U(s)}$$
What I need is to find the zeros, poles and gain. Finding poles are really easy. I just find the eigenvalues of the matrix $A$.
$$det(sI-A) = 0$$
Then I get the poles $$s_i = a\Re_i + b\Im_i$$
But how about the gain and zeros? How do I find them?
Static gain is simply $C(- A)^{-1}B+D$ directly from the transfer function definition. To compute zeros, it is more involved as it depends on your definition of a zero (invariant or transfer?).
There are some references in MATLABs help https://se.mathworks.com/help/control/ref/tzero.html