I am currently trying to show the domain of variables in a simple equation:
\[\begin{matrix}
x & \cdot & W_{1,2} & = & o\\
\in & & \in & & \in\\
\mdr^{1\times n} & & \mdr^{n \times m} & & \mdr^{1 \times m}
\end{matrix}\]

There are some more issues with this way to show the domain of variables, but this question is mainly about the rotated \in.
Failed tries
I've tried \usepackage{rotating}:
\[\begin{matrix}
x & \cdot & W_{1,2} & = & o\\
\text{\begin{rotate}{-90}$\in$\end{rotate}} & & \in & & \in\\
\mdr^{1\times n} & & \mdr^{n \times m} & & \mdr^{1 \times m}
\end{matrix}
\]
The result looks like this:



\def\rin{\rotatebox[origin=c]{-90}{$\in$}}and use\rininstead of\inin your formula. Requires packagegraphicx– JLDiaz Jun 12 '14 at 15:18