Skip to main content

Questions tagged [data-structures]

Questions on using or implementing more or less common data structures such as linked lists, structs, trees, tries, heaps etc. in Mathematica.

1 vote
0 answers
81 views

I really like Associations in most regards. But they can be really annoying to work with when you need to search, or act on, their value contents. I understand why ...
Kvothe's user avatar
  • 4,931
1 vote
0 answers
80 views

I am reading data from a socket using SocketReadMessage. It gives a ByteArray. The data comes in chunks, and I need to combine ...
boddeke's user avatar
  • 111
2 votes
3 answers
244 views

I created a simple test to explore memoization/caching: ...
Steve's user avatar
  • 315
0 votes
2 answers
110 views

I am working on a problem involving nested lists of varying lengths and structures in Mathematica. The goal is to merge these lists into a single unified structure, where each sublist contributes a ...
Mikoto's user avatar
  • 366
0 votes
1 answer
101 views

I have the following dataset: ...
tush's user avatar
  • 397
1 vote
0 answers
105 views

Birds can create fascinating moving structures in the sky, as can be seen here https://www.youtube.com/watch?v=0dskCpuxqtI I wonder how such a time-dependent structure can be simulated in Mathematica. ...
Dr. Wolfgang Hintze's user avatar
0 votes
0 answers
82 views

I am writing a code to simulate some spins. Following is the main part of the code: ...
P Pyne's user avatar
  • 552
0 votes
1 answer
160 views

I am trying to train a physics model and then check its profile. For this model, data for physics model is defined with: ...
Dean's user avatar
  • 655
0 votes
2 answers
118 views

I want to find an interpolation function for data in which the x-variable is repeated (example below). The repetition in data is natural and cannot not be eliminated. Can I somehow use ...
SciJewel's user avatar
  • 631
7 votes
0 answers
149 views

The documentation for DynamicArray states that it is "An extensible array is useful for continuously appending elements, as well as for efficient element extraction and updating." I tried a ...
Craig Carter's user avatar
  • 7,544
1 vote
2 answers
125 views

Let's say we have a contour plot of the following, ContourPlot[Cos[x] + Cos[y], {x, 0, Pi}, {y, 0, Pi}, ContourLabels -> True] that gives, we can extract the ...
a019's user avatar
  • 887
2 votes
1 answer
145 views

I have a set of time series sampled at one second intervals. For example, ...
Nick's user avatar
  • 413
0 votes
1 answer
147 views

I would like to set up a list like this data = {{Date1,y1,y2,y3,y4,y5,y6},{Date2,y1,y2,y3,y4,y5,y6},...} and then use DateListPlot to create various plots, e.g. y1 ...
ConfusedCabbage's user avatar
3 votes
1 answer
100 views

Hi I have a set of data and will like to find out I can split these 30 cycles into each individual cycle? Do I use the for loop function in this application. Thanks for the help in advance. ...
Boajj04's user avatar
  • 322
0 votes
1 answer
350 views

Consider the matrix 'm1' : m1 = RandomReal[{0, 1}, {100, 100}]; The question is, how to rotate the 'm1' data 45 degrees and extract the matrix 'm2' from it (shown ...
ralph's user avatar
  • 1,029

15 30 50 per page
1
2 3 4 5
14