How to use the Transformation matrix for 2 x 3 or 3 x 2 matrices?

I have two matrices in a given axes ($K_1 \:\&\: K_2$) and their dimensions are ($2\times 3\:\:\:\&\:\:\:3\times 2$) respectively, now the axes were rotated by an angle $\theta$, the values of ($K_1 \:\&\: K_2$) in the new axes must be changed.
for ($2\times2$) matrix, it is easy to use the transfer matrix $A$,$$A=\pmatrix{\:\:\:\cos\theta &\sin\theta\\-\sin\theta&\cos\theta}$$ and by using the relation below the new $K$ matrix can be found:$$K' = A^T K A$$

My question is, how can I apply the above procedure for $K_1 \:\&\: K_2$?

• This is not possible with the specific matrix dimensions you provided due to matrix multiplication rules. – J_Nat Aug 19 '16 at 14:54
• @J_Nat I know so I ask, is there any way to modify the $A$ matrix to be $2\times3$ or $3\times2$? – Muhammad Abdulrasool Aug 19 '16 at 15:01
• @LeandroMacieldeCarvalho the link is not found it said Oops, the page you're looking for can't be found. – Muhammad Abdulrasool Aug 19 '16 at 15:03
• reference.wolfram.com/language/ref/… – LCarvalho Aug 19 '16 at 15:04
• @MuhammadAbdulrasool You should try to be more straight forward with what you are asking in the future. I interpreted your question as you just wanted a function using the A and K's you gave. – J_Nat Aug 19 '16 at 15:15