I'm using amsmath and want to display a state-space representation where all equal-signs are alligned, and the elements in-between are centered. Just like align should do, to my understanding. But I get this, where all blocks are aligned right. Not to mention weird blank spaces inserted after each =:

Code:
\documentclass{article}
\usepackage{amsmath}
\renewcommand{\vec}{\textbf}
\begin{document}
\begin{align}
\dot{\vec{x}} &=& \begin{bmatrix}
\dot{n}\\\dot{x}\\\dot{x_c}\\\dot{V_v}\\\dot{V_m}\\\dot{H}
\end{bmatrix} &=& \begin{bmatrix}
f_2(f_1(I),n)\\
f_4(x, x_c, f_3(f_1(I),n,x,x_c))\\
f_5(x, x_c, f_3(f_1(I),n,x,x_c))\\
f_8(f_7(f_6(x, x_c),H), V_v, f_9(V_m))\\
f_{10}(V_m, f_{11}(V_v))\\
f_{12}(H, f_9(V_m))
\end{bmatrix} &=& \vec{f}(\vec{x}, \vec{u}; \theta)
\label{eq:state}\text{, and}\\
\vec{z} &=& \begin{bmatrix}
S_w
\end{bmatrix} &=& \begin{bmatrix}
h_1(f_9(V_m))
\end{bmatrix} &=& \vec{h}(\vec{x}; \theta)
\label{eq:output}\text{.}
\end{align}
\end{document}


\mathbf, not\textbf, for math-mode material. – Mico Mar 12 '18 at 15:27&signs after=signs iseqnarraynotation, not any of theamsmathalignment structures. that's the reason for the extra space. – barbara beeton Mar 12 '18 at 16:29