I would like to generate the following array or matrix. The symbolic variable Z needs to have a subscript of 1。And
can be used in subsequent symbolic operations. or 
Currently, I can generate the following effects in Live Scripts.
There are three problem::
1. I cannot obtain
or
on the left side of the equal sign; I can only get Z on the left side of the equal sign. 2. The output results copied as LaTeX code do not include Z; they only include the vector itself.I would like the LaTeX code in the output to include
or 
3、How to convert round parentheses of a vector to square brackets
Screenshots of Live Scripts:
I copied LaTeX code like the image below.
latex code: