Given a matrix expression
testm = {a + b, c + d, e};
{# , testm[[ # ]] // Simplify} & /@ Range[ Length[testm] ] // MatrixForm
\begin{equation}\begin{pmatrix} 1 & a+b \\ 2 & c+d \\ 3 & e \\\end{pmatrix}\end{equation} I want to rewrite this as \begin{equation}\begin{pmatrix}1.1 & a \\1.2 & b \\2.1 & c \\2.2 & d \\3 & e \\\end{pmatrix}\end{equation}
How do I do this? Eventually, I want to extend this to a more complicated case where I have \begin{equation}(a+b) = A exp[I(k + l)m(n + o + p\ q)] Cos(r \ s)+A exp(I (k + l) m (n + o + p \ q)) Sin(t \ u)\end{equation} displaying the cosine term next to 1.1 and the sine term next to 1.2 .