Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 37285

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

10 votes
9 answers
1k views

Determine repeating number of a given number and corresponding position

For instance, the data is as follows: data = {1, 1, 1, -1, -1, 1, 1, -1} The target output when determining how many times "1" repeats should be: {{1, 3}, {6, 2}} with the 1 showing that the fi …
0 votes
1 answer
95 views

Correlation of subsets of two sets of data [closed]

For instance, I have: data1 = {{1, 2, 3}, {2, 3, 4}, {3, 4, 5}}; data2 = {{3, 2, 1}, {6, 7, 8}, {5, 4, 3}}; I want to calculate the correlation that data1[[1, All]] has with each subset of data2, t …
2 votes
4 answers
153 views

Partition list into sublists of decreasing length [duplicate]

For example, I would like to partition {1,2,3,4,5} into {1} {1,2} {1,2,3} {1,2,3,4} {1,2,3,4,5} with just one line of code. Is there any way to do this? I am working with a much larger data set an …