Questions tagged [matrix]
Questions on the manipulation of matrices in Mathematica.
3,641 questions
1 vote
1 answer
55 views
How to change the color of the individual squares on a chessboard?
The code I have written to create a chessboard is as follows: ...
0 votes
1 answer
111 views
Is it possible to find eigenvectors of matrix $f(1)$ in the given code analytically in terms of the variable $y$?
I have this differential matrix equation f'[x] == {{2 x, y + 5 I}, {-3 I + 2 y, Sin[3 x] - 5 y}}.f[x] for f[x] with the initial ...
2 votes
2 answers
155 views
Getting the row operation matrices in RowReduce
Mathematica's built-in function RowReduce renders a given matrix into RREF (Row Reduced Echelon Form), but is there any option to see what row operation matrix it ...
4 votes
1 answer
143 views
How to implement a 2x2 operator in Mathematica?
I am trying to write a Mathematica program to compute the following: For a given Hermitian matrix $\rho$, the operator $L_\theta$ with respect to a parameter $\theta$ is defined as: \begin{equation} ...
0 votes
1 answer
89 views
DSolve throws overdetermined error for large (but simple) system of ODEs
I have the following example, which is a proxy for the more complex problem I am trying to solve.(Apologies that the LaTeX is explicit, for some reason it trips the code formatting error on ...
5 votes
3 answers
448 views
Linear system of matrices
I don't know Mathematica very well, I have an equation involving matrices of the following form: given two $5\times5$ matrices $A,B$ where $B$ is nilpotent we want to find a matrix $X$ such that ...
4 votes
1 answer
136 views
Partial derivative of a matrix with respect to a vector dimension?
So I found this definition in this paper, but I wanted to double check that this is actually correct because I heard that the Partial derivative of a mxn matrix with respect to a p vector is supposed ...
7 votes
2 answers
268 views
Sum of combination of elements of a matrix
Give a $N \times N$ matrix $M$ in MMA, I am interested in finding a very particular sum using its matrix elements: $ \sum_{i \neq j \neq k \neq l}^{N} M_{ij}M_{jk}M_{kl}M_{li}$, which is of some use ...