# [Tex/LaTex] How to insert a column vector using transpose of row vector in LaTeX

math-mode

I want to write A=[Xtk Ytk .Xtk .Ytk]^T in LaTeX. ^T means that I want the transpose symbol "T" to come as superscript of the matrix. Xtk should appear as the variable X with subscript t and subsubscript k. Similarly for Ytk. Third entry, .Xtk, means that I want the . (dot) to come on top of Xtk, denoting velocity.

I want to know how these can be expressed in desired forms in LaTeX.

\documentclass{article}
$$A=\begin{bmatrix} X_{t_{k}} & Y_{t_{k}} & \dot{X}_{t_{k}} & \dot{Y}_{t_{k}} \end{bmatrix}^{T}$$
$$A=\begin{bmatrix} X_{t_{k}} \\ Y_{t_{k}} \\ \dot{X}_{t_{k}}\\ \dot{Y}_{t_{k}} \end{bmatrix}$$