Linked Questions

1
vote
2answers
66 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 &...
1
vote
2answers
132 views

Flatten a four dimensional array into a matrix

What is the simplest way to transform an array of the form ...
0
votes
2answers
118 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] ...
3
votes
2answers
91 views

Manipulation of 3D matrix

Assume that we have a 3D array x, and we would like to split it into 2D slices then cut every slice into some small patches and get all patches in single list ...
2
votes
1answer
332 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 ...
2
votes
1answer
317 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 ...
11
votes
3answers
344 views

Most efficient way to build block / banded SparseArray

I have a matrix that I generate with a procedure that looks like this: ...
6
votes
5answers
447 views

Part of the nested lists

Suppose I have a nested list where sublists have unequal length. How can I extract all values of the list at specific level ignoring errors if the value at that level doesn't exist. For example: <...
2
votes
3answers
185 views

How to find all prime power factorizations of an integer

I want to put in $n$ and get the possible factorizations into prime powers. Let's say for 24 I want {{8,3}, {4,2,3}, {2,2,2,3}}. The algorithm for doing this on ...
2
votes
3answers
481 views

Applying the vec operator

How to apply the $\operatorname{vec}$ operator in Mathematica? For example, how can I transform a $2 \times 2$ matrix into a $1 \times 4$ matrix as follows? $$ \operatorname{vec}\left( \begin{...
1
vote
0answers
58 views

Trouble in understanding `Table` [closed]

Even after, not only seeing, but understanding on Mathematica SE and also using Table. I am afraid, if I still understand it. Here is one example, which I couldn't ...
10
votes
2answers
380 views

How to riffle matrices

I have four matrices ...
3
votes
2answers
131 views

List extraction

Given the following list: ...
5
votes
3answers
94 views

Adding the data of different tables

I have three tables of data say t1 = {{1, 2}, {2, 3}, {3, 4}}; t2 = {{1, 3}, {2, 3}, {3, 5}}; t3 = {{1, 3}, {2, 3}}; First I want to add ...
10
votes
1answer
393 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 ...

15 30 50 per page