I am trying to write a matrix in Latex in Manim. I would like the matrix components' value to be inserted from variables.
x = 4
y = 1
A = MathTex("\\vec{A}=\\begin{bmatrix} x \\\\ y \\end{bmatrix}")
When I display A, I get A=[x y] (in one column format). What I really want is A=[4 1]. Does anybody know how to pass the values of those variables into a Latex equation?