This
RotationMatrix((Theta),{0,0,1})//Matrixform
Gives
$left( begin{array}{ccc} cos (theta ) & -sin (theta ) & 0 \ sin (theta ) & cos (theta ) & 0 \ 0 & 0 & 1 \ end{array} right)$
Now, I would Like to add a row and column to it like this
$left( begin{array}{cccc} color{red}{1}&color{red}{0}&color{red}{0}&color{red}{0}\ color{red}{0}& cos (theta ) & -sin (theta ) & 0 \ color{red}{0}&sin (theta ) & cos (theta ) & 0 \ color{red}{0}& 0 & 0 & 1 \ end{array} right)$
I would like to just be able to add there red ones on any RotationMatrix($theta$,$w$) that I define as done in the beginning.
Is there any simple way to achieve this?
On a similar note,
RotationMatrix(I (Theta),{0,0,1})//MatrixForm
gives
$left( begin{array}{ccc} cosh (theta ) & -i sinh (theta ) & 0 \ i sinh (theta ) & cosh (theta ) & 0 \ 0 & 0 & 1 \ end{array} right)$
So here I would like to add a row
$left(begin{array}{cccc}cosh phi & -isinh phi & 0 & color{red}0 \ isinh phi & cosh phi & 0 & color{red}0 \ 0 & 0 & 1 & color{red}0 \ color{red}0 & color{red}0 & color{red}0 & color{red}1end{array}right)$
and here also I would like to flexibility of defining the things in black part about any vector. Any suggestions?