# Questions tagged [matrix]

Questions on the manipulation of matrices in Mathematica.

2,599 questions
Filter by
Sorted by
Tagged with
1answer
24 views

### syntax error when defining a list of matrices: “…cannot be followed by..”

I am literally just defining a list of matrices, but seem to run into the following error when adding the last matrix. (so to be clear, I get no error when I take out the last matrix entry). What's ...
0answers
30 views

### Computing matrix eigenvalues with units

I apologize if this is a basic question or if I am not giving enough detail. I'm trying to solve for the eigenvalues of a matrix with matrix elements that have units. ...
1answer
47 views

### Using the elements of one Matrix to form a new Matrix with specified rules

Given a matrix [a], how to get matrices [b] and [c] based on the following two rules? rule [a]->[b]: Strike out corresponding term in [a] and take product of the remaining two terms in the same ...
2answers
110 views

### Finding the square root of a 7*7 matrix with real entries

Suppose that I have the following symbolic 7*7 matrix ...
2answers
60 views

### How to reorganize matrix according to location requirements

I want to specify a location replacement for matrix reorganization. For example, when I specify the location replacement rule to be {1, 2, 3, 4} -> {2, 3, 0, 0} ...
0answers
31 views

2answers
202 views

### Create a matrix from the rows of another, and calculate the rank of the new matrix

This may be a very basic question, so apologies in advance, I'm a first-time Mathematica & StackExchange user! I have a 7x3 matrix X with all rows being unique in a 2D-list format. For example:...
0answers
77 views

### How to use MatrixPlot as a DensityPlot?

I have a 1000x1000 matrix the MatrixPlot of which gives this graph: The code is ...
0answers
91 views

### Computing log-determinant?

Mathematica does-not have a function to compute the log-det of matrix? Naively computing Log[Det[M]] can be numerically unstable.
1answer
103 views

### Cryptic NDSolve::nlnum when working with matrices

This problem was initially formulated in quaternions, but I had to rewrite them to complex matrices (as they seem to be supported better). Possibly introducing some errors along the way. So the ...
1answer
104 views

### Diagonalizing a symbolic matrix

I am trying to diagonalize the following matrix \left(\begin{array}{cccc} { \frac{1-K\left(x_{2}^{2}+x_{3}^{2}\right)}{1-K|x|^{2}}} & { \frac{K x_{1} x_{2}}{1-K |x|^{2} }} & { ...
1answer
48 views

### The Matrix formula of this hamilton is different from that found in the paper

I am trying to rewrite the following Hamiltonian in the matrix form, but I get different results. In this article, the Hamiltonian that represents a three-qubit Heisenberg spin chain and its matrix ...
1answer
102 views

### Efficient way to evaluate numerically product sines functions

I'm trying to perform integration of the following matrix. ...

1 2 3
4
5
ā¦
52