# Tagged Questions

Questions on the manipulation of matrices in Mathematica.

50 views

### How to make the conjugate transpose

I have a problem to make the conjugate and transpose the matrix.May anyone help me please. ...
101 views

### How to generate a Markov Matrix efficiently

A Markov Matrix is a square matrix,which have two features: All elements great than or equal to $0$(But I hope all element great than or equal to $0.1$) All the columns add up to $1$ I have a ...
44 views

### Remove columns basing on binary sequence

Possibly it is duplicate, still I could not find here elegant way to remove matrix columns basing on binary sequence. i.e. if I apply {1,1,0,0,1,0,1} to matrix it should delete columns 3,4 and 6.
71 views

### Aguilera-Perez Algorithm of $nD$ rotation matrix [closed]

I want to compute a general $nD$ rotation matrix which corresponds to a rotation by an angle $\theta$ around an $(n−2)$-dimensional subspace. I found the Aguilera-Perez algorithm in their paper: ...
106 views

### Expanding a matrix in a set of matrices

Consider a vector $a=\{a1,a2,a3\}$. I computed $e^{i a\cdot \sigma}\qquad \sigma: {\rm Pauli\ matrices}$ and then applied the command ExpToTrig. Now I want to expand the above result in terms of ...
40 views

### Probems using 2 For and a AppendTo to cycle through my Equation to solve some matrixes

I am trying to solve a few problems here. I have an equation with multiple variables that I am trying to solve in For loop method. I will attach the file below. In addition I am trying to get it to ...
105 views

### how to update elements in a matrix with position identified in a list

I am new to mathematica. Could you pls help me on how to write this: I have a $5\times 10$ matrix, for example, ap = ConstantArray[0.001, {5, 10}] I have the ...
84 views

66 views

### Kronecker product

I have a problem, I want to compute kronecker product as given below; ...
50 views

### How to automate a computation and save the outputs?

I'm working with neutrino oscillations in matter and i'm computing the oscillation probabilities as functions of the Energy. This is what i have ...
60 views

### Dynamic input for Complex, Determinant output problems [duplicate]

I'm having trouble using Complex with Dynamic real and imaginary inputs. The inputs come from a matrix of popup menus: ...
95 views

### Group matrix values by column [closed]

Original Question: I have a list {{a, 1}, {b, 3}, {c, 1}, {d, 2}, {e, 3}}. I want to be able to group the the first number in each pair that has the same second ...
62 views

### Plotting Matrix versus Matrix [closed]

So I recently started using Mathematica and I haven't been able to figure out how to simply plot elements of one matrix versus another matrix which are not directly related or are not a function of ...
409 views

### Nonlinear matrix equation solving in Mathematica

is it possible to solve below equation in Mathematica? A.X+B.Exp[X]==C A, B are square ...
61 views

69 views

### generating random algebraic matrix using elementary operations

I generate several algebraic matrices of 12x12 where each element is a combination no repeat of the variables x, y, z and operations +, -, *, /, power, establishment (square root), any of them or any ...
61 views

### How to solve trigonometric matrix

I need help for my problem according to matrix. Given a matrix, ...
79 views

### Creating a constant-valued matrix having the same dimensions as previously defined matrix

I have the dimensions of a matrix A. I would like to create a matrix B (say, of only 0's) of the same size as A. But A's dimensions are variable. Is there an efficient way using ...
75 views

### Implementing the Cimmino method [closed]

What am I doing wrong? I am trying to implement the Cimmino method, an iterative method for the solution of linear algebraic systems. The final output should be a vector. Here is a description of the ...
165 views

### How to Convert a Matrix into an Association?

I have a matrix like this one: test = {{1, "a"}, {3, "b"}} and I want to convert it into an association like this ...
71 views

I'm trying to figure out a nice way to add a mix of symbolic and explicit vectors/matrices without mathematica treating the symbolic vectors as scalars and promoting them to constant arrays. For ...
50 views

### Evaluate polinom with matrices [closed]

Let's say that I have the following polynom f = a+b+ab I want to evaluate this expression like this: ...
192 views

### Eigenvectors of numerical matrix

I have a large numerical matrix whose eigenvalues are all distinct. In the documentation for Eigenvectors it says: For approximate numerical matrices m, the ...
36 views

### extracting families with their representatives and number of repetition [closed]

There is a matrix: {{1,1,1},{1,2,1},{2,1,1},{-2,-1,-1},{1,1,-2},{1,-2,2},{2,1,-2},{1,-2,2},{-2,2,1},{1,2,2},{2,2,2}} How we can extract another matrix which ...
54 views

### Random distribution of some Lists on a distinct matrix

I have 3 functions as below ...
68 views

### How to correctly calculate symbolic eigenvectors

I give a minimalistic example of my problem: I have a matrix: m[a_,b_]:={{0,-a+b},{b,0}}; I define the eigenvectors as: ...
53 views

### Constructing tensors with arbitrary rank and dimension [closed]

How can I create a tensor with arbitrary rank n and m components in each dimension? I am looking for a command in which I insert n and m and it spits out the corresponding tensor with random entries (...
47 views

### check content of a Matrix

I have a matrix which contain rotated ellipses and points, how can I check if the element in the position {i,j} is either a point or an ellipse? the code is a bit longer but the structure is like: ...
573 views

### Row-Reduced-Echelon-Form with Equation Parameters for Consistent Systems

I often do row-reduced-echelon-form (RREF) calculations that involve parameters using the RowReduce command. Most times, I want to know which parameters make the system consistent. For example: <...
71 views

### Nonlinear Markov chain (numerical simulation)

Suppose you have a linear Markov process, and you can write it as x(t+1) = Ax(t). Here x is the vector of values, and A is the transition matrix. Since this is linear, it can be solved analytically, ...