38 questions linked to/from Flatten command: matrix as second argument
132 views

### List extraction

Given the following list: ...
255 views

### Inserting rows of one matrix into rows of another matrix sequentially

I have two matrices M1 and M2. Both have same number of columns but different number of rows. I want to make a new matrix M which should have 1st row form M1, second row form M2, third row form M1, ...
199 views

### How to convert multidimensional matrix into regular matrix?

I have this multidimensional matrix: {{{{a1, a2}, {a3, a4}}, {{b1, b2}, {b3, b4}}}, {{{c1, c2}, {c3, c4}}, {{d1, d2}, {d3, d4}}}} I would like to convert it into ...
422 views

### How can I thread lists of different sizes?

What I need is the equivalent of Maple's zip(+, A, B, 0). Sure I can get it with: ...
69 views

### How to assemble matrices?

I'm a beginner in Mathematica and have a very basic question. Suppose I have made the following matrices (4x4). $$A,B,C,D,$$ and I want to make the larger matrix \begin{bmatrix} A & B \\ C &...
134 views

### Flatten a four dimensional array into a matrix

What is the simplest way to transform an array of the form ...
136 views

### Creating a nested table

I have a row of values that I partition into a table. row = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12}; rowPartitioned = Partition[row, 6] ...
1k views

### Using Transpose with a list as the second argument

I'm having difficulty understanding the Transpose function. I know what the transpose of a matrix is, not a problem, and I see that applying the ...
401 views

### Plotting how sunrise times change over the year

I created a somewhat lengthy Python code to show how the time of sunrise varies over a year, resulting in the following figure (daylight savings were disregarded): The dataset can be found here. The ...
362 views

### Flatten a list at some level

I wonder if is possible flatten a list at the last level without flattening at the first level, I think that isn't a good explanation so here is my code ...
324 views

### Flattening a list [duplicate]

I have a list with dimensions {1000, 1000, 1} and I would like it to have dimensions {1000, 1000}. But ...
113 views

### Combining the entries of two lists [closed]

I have two lists {a, b, c, d, e} and {1, 2, 3, 4, 5}. I want to creat a new list of tuples as follows ...
62 views

### Collecting specific Lists of data in coordinate form

Note: This might be trivial for many of the users but i am new to mathematica so i don't know!!! Question: Suppose i have three list of data as follows: ...