# How to insert a column vector using transpose of row vector in LaTeX

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.

• Hi! Do you mean $A = [X_t^k, Y_t^k, \dot X_t^k, \dot Y_t^k]^T$ ? – yo' Aug 28 '14 at 6:52
• It should be as equation because I want to number that. – zurr Aug 28 '14 at 6:53
• Well, in all honesty, your question shows that you miss some basic stuff. If I can, I would like recommend you reading some book on LaTeX, there's a nice list of them here: tex.stackexchange.com/q/11 – yo' Aug 28 '14 at 6:57

\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}$$