Skip to main content

Questions tagged [list-manipulation]

Questions on the manipulation of List objects in Mathematica, and the functions used for these manipulations.

2 votes
1 answer
215 views

Assume that I define: ...
MTYS's user avatar
  • 169
2 votes
3 answers
227 views

This may be a silly question, and if it is, I'm willing to withdraw it. I have a list of lists myInitialList. I wish to write a function to transform ...
Andrew's user avatar
  • 10.6k
4 votes
1 answer
150 views

Say I have a list containing some expressions, for instance ...
eddy ardonne's user avatar
3 votes
1 answer
124 views

The title says it all. These two examples both have StringEndsQ emit an error message because it's being evaluated on the head of the input list. ...
Adam's user avatar
  • 4,293
5 votes
2 answers
282 views

Suppose I have a string myString = "ABC DEF". To split myString into a list of separate strings delimited by ...
Andrew's user avatar
  • 10.6k
5 votes
4 answers
340 views

Given a list, I want to find all possible ways to split it into sublists such that: Each sublist has length greater than 1. Any two consecutive sublists share exactly one common element. All elements ...
internet's user avatar
  • 1,417
7 votes
7 answers
368 views

I have myList, a list of triples: myList = { {a1, a2, a3}, {b1, b2, b3}, {c1, c2, c3} }; I wish to apply a function ...
Andrew's user avatar
  • 10.6k
4 votes
3 answers
178 views

I have a list of binary functions such as {Plus, Times, Subtract} and a list of symbols like {a, b, c, d}. I want to construct ...
expression's user avatar
  • 5,782
3 votes
2 answers
146 views

I have just encountered a weird problem for which I cannot understand the reason. Say I have two vectors that I define as o = {0, 1}; z = {1, 0}; Now I am ...
Erosannin's user avatar
  • 1,226
10 votes
11 answers
507 views

Suppose I have a list of binary functions, e.g. funcs = {Plus, Times, Power} as well as a list of arguments, e.g. ...
thecommexokid's user avatar
1 vote
3 answers
174 views

My data looks something like this: ...
Will Gage's user avatar
2 votes
2 answers
140 views

I have data I want to plot comprised of values on time. The data comes from a .log file imported as Table. Each line in this file is logged as [2025.09.15-12.36.00:160][543]Log: 42 being [Date and ...
Skuva's user avatar
  • 23
5 votes
1 answer
372 views

Consider a list: list = RandomReal[{-15000, 20000}, {#, 2}] & /@ RandomInteger[{1950, 2100}, 16000]; And a simple function mapped over it: ...
Anton's user avatar
  • 2,072
3 votes
1 answer
296 views

Consider this example from the Wolfram Documentation: Thread[f[{a, b, c}, x]] {f[a, x], f[b, x], f[c, x]} Now, let's modify the list: ...
Anton's user avatar
  • 2,072

15 30 50 per page
1
2 3 4 5
652