Is it possible to make one of the items in the matrix a variable? (And then e.g. put the matrix in an equation, expand it, and solve for the variable).
You can do this using the SymPY.jl package. As a good chunk of matrix functionality is parametric on element type, you can do matrix operations on SymPY's symbolic variables.