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

learn more… | top users | synonyms (5)

3
votes
3answers
125 views

Epilog with multiple lists

I have as example multiple lists of x data (in mm) http://pastebin.com/7xwgGDsd which I want to plot against time (in sec). ...
0
votes
0answers
22 views

Exporting formatted numbers

I would like to format numbers of a list and write them in columns to file. ...
0
votes
1answer
40 views

How to multiply two tensor with arbitrary ranks, on one index only (like GR)?

I am writing a function which take two tensors with the same dimensions but with arbitrary ranks and multiplies them over one index, just like this example from GR: See, I couldn't use ...
3
votes
2answers
55 views

How to group this list in to some group whose element have a same number to relate

I have this list list={{0,7},{16,0},{16,2},{12,5},{11,1},{1,20},{3,20}}; This is my current method to realize it. ...
1
vote
0answers
32 views

extracting families with their representatives and number of repetition

There is a matrix: {{1,1,1},{1,2,1},{2,1,1},{-2,-1,-1},{1,1,-2},{1,-2,2},{2,1,-2},{1,-2,2},{-2,2,1},{1,2,2},{2,2,2}} How we can extract another matrix which ...
1
vote
1answer
26 views

Call multiple data sets in Listplot [on hold]

I am generating numerical data sets with a for loop and the table command. These data sets are named data[i], where $i$ is the counting variable of the ...
2
votes
1answer
56 views
0
votes
1answer
38 views
3
votes
2answers
46 views

PlotStyle with nested list

Simple Question from a Stumped Rookie: Using ListPlot, I can't get PlotStyle to look below the first level of a nested list to assign individual saturation values for each point; it assigns the ...
4
votes
2answers
66 views

Why does `Repeated` not work in this case?

I think I don't understand how to use Repeated. I have a list for example list={a,b,a,b,a,b,a,a,b} I want to detect whether ...
3
votes
2answers
123 views

Interesting “Tuples” application

I want to start with: {a,b},{c,d},{e,f} and end up with: {a,c,e},{a,c,f},{a,d,e},{a,d,f},{b,c,e},{b,c,f},{b,d,e},{b,d,f} ...
1
vote
2answers
561 views

Row-Reduced-Echelon-Form with Equation Parameters for Consistent Systems

I often do row-reduced-echelon-form (RREF) calculations that involve parameters using the RowReduce command. Most times, I want to know which parameters make the system consistent. For example: ...
1
vote
0answers
20 views

Getting just a number out of a list [on hold]

Witht the command dummy1 = Position[Subsets[Range[n]], {3, 4, 5}] I am getting a list of the form {{26}}. Is there any way to get just the number 26 as an ...
19
votes
5answers
914 views

Map-Thread-Through-Apply a list of functions onto a list of (lists of) values

I have a list of functions: fns = {f, g, h} and a list of triples: ...
1
vote
1answer
68 views

ListPlot problem

I have the following example: x = {1, 2, 3, 4} y = {{1, 2, 3, 4}, {2, 3, 4, 5}, {3, 4, 5, 6}, {4, 5, 6, 7}} Now I can plot: ...
6
votes
1answer
63 views
0
votes
1answer
49 views

Export list in 4 columns without curly brackets

I have generated the following list: http://pastebin.com/vmtRrfcD (updated) The dimension of the list is ...
4
votes
3answers
125 views

Extracting *firstly roots* from some lists to plot their pairs values

I have two different lists as list1 and list2. Their ListPlot3D of them are: and As shown in these plots, there are some points of which ...
-3
votes
0answers
48 views

Can I use function to generate List from another? [on hold]

Suppose we got a 3 dimensional List M(x,y,z),xyz indicates the dimension number. Can I get a new List use just function like NewList=M(x,y,z+1)/M(x,y-1,z)? M here would like {{{a[1, 1, 1], a[1, 1, ...
0
votes
2answers
98 views
0
votes
0answers
41 views

A function that takes in an array and returns an array (or lists) [on hold]

So I have function f[x_] := c.x - Total[Log[b - A.x]] where the variables have dimension c is 1x100, b is 500x1, A is 500x100, and x is 100x1. My goal is to get the ...
0
votes
1answer
31 views

Struggling to Apply “Differences” [duplicate]

It looks like the following code should work, and allow it spits out error messages saying I have too many arguments, the code spit out after the error message looks like exactly what I want to ...
2
votes
1answer
74 views

Apply function to a part of a list [closed]

Let's say I have some data: data={{a1,b1},{a2,b2},{a3,b3},{a4,b4},...} and I would like to apply the function: f1[x_]=x*5 to ...
5
votes
2answers
103 views

Threading sublists on list

Suppose I have a list of the form: list = {a, b, {c, d}, f, {g, h}} i.e. an element of the list could be another list. I want to 'thread' each element of the ...
0
votes
1answer
45 views

Manipulation of imported Datafile

Since I am solving a differential equation in a for loop with NDSolve ...
2
votes
2answers
42 views
3
votes
1answer
120 views

Plotting a table with many y values

I'm trying to plot a bifurcation map for a Lorenz System. I have a function (called estables in the code that follows) which, for a certain value r, returns the ...
0
votes
0answers
44 views

How to apply a function to a list, being able to use a list index inside of the function? [closed]

In the documentaion I find things like: M = {a, b, c}; kappa[x_, y_, z_] := x PauliMatrix[1] + y PauliMatrix[2] + z PauliMatrix[3] kappa @@ M // MatrixForm But ...
1
vote
1answer
185 views

Finding Coordinates of a Peak on a Plot

I have plotted a graph from a CSV file which consists of two columns of data Time and Intensity. I simply want to find the time where the intensity is largest. This code: ...
6
votes
1answer
107 views

Filters on image vs data

I was using GaussianFilter and realized that applying it to an array yields a different result from applying it to an image. For instance: ...
-1
votes
0answers
31 views

Insert several sequential alphanumeric characters pdf [closed]

As I can make it through "this" directory 1 to "this" in the directory 2 and so on for 50 pdf, Deputy sample directory Example
3
votes
3answers
167 views

Looking for a better way to delete an arbitrary list of rows from a matrix

Delete is not suitable to delete the rows of a matrix, as illustrated below: ...
1
vote
3answers
122 views

Basic Programming in Mathematica - How to build a loop [closed]

I want to build a loop with the following rules: I have a list a={5,7,8,9,5,6,8,6,7,8}. I want to print the mean of the first two ...
16
votes
4answers
479 views

How to enumerate all possible binary associations?

Suppose I have a list of symbols like: {a,b,c,d} I would like to enumerate all possible binary associations (combining symbols and/or sublists pairwise): ...
12
votes
3answers
224 views

Exclude overlapping lists while keeping disjoint- and sub-lists?

Consider a function f[l1_List,l2_List] which is given lists of integers. Whenever two of the lists contain completely disjoint sets of integers OR one of the lists ...
4
votes
2answers
132 views

Select non-zero elements [duplicate]

I have a function that generates a list of numbers and variables . e.g. F[w]= {wx, wy, 5, 0} I want to select all non-zero elements i.e. ...
2
votes
1answer
9k views

Table - find index of the maximum element [duplicate]

Let's suppose that I have table t = {1.23, 3.4, 10, 34, 1.78, 0.98, 12.56}. To take the biggest element I can use Max[t] ...
2
votes
3answers
144 views

What is an efficient way to pick out consecutive, same first-letter words from a list?

Taking a list of words, I'd like to pick out consecutive words that start with the same letter. The output should be a list of these pairs. The following is relatively slow: ...
0
votes
1answer
49 views

How to get a speicifc element from unknown number of lists?

I have a mathematica function that returns a list of the form: ...
0
votes
2answers
77 views

Fitting a Gaussian model to specific section of my list?

I'm analysing some Decay sepctrums for a Nuclear Physics project. I need to fit a gaussian model to a specific X-Ray peak to determine the centroid so I can get a good channel-energy calibration. ...
0
votes
0answers
34 views

Append value to list automatically when day changes

I am trying to append values to a list automatically when the day changes, is there a way to do that on mathematica?
8
votes
3answers
270 views

Creating new List by comparing 2 lists elements

Suppose I have two Lists (Not equal length). Both contain random numbers between 0 to 5000 (or another max limit): ...
4
votes
2answers
207 views

Flip sign of one variable in list

I have this list of x, y-pairs l={{x1, y1}, {x2, y2}, ...}. Now I need to flip the sign of the y values only before plotting. What is the easiest way to do this ...
2
votes
1answer
46 views

Extract part of list by reading it in a cyclic manner

I have trouble extracting part of a list in a specific order, say, increasingly in a cyclic manner. For example, I have the following list list={0,10,6,-5,-10} ...
2
votes
1answer
65 views

Why does `Position` by default return a list of lists of positions instead of a simple list of positions?

Position[{1,2,3,4,2,3,4,5},2] (* Output: {{2},{5}} *) Why does Position work this way? I understand this form might be ...
2
votes
7answers
329 views

How to repeat a matrix on it's side?

I have the following matrix in Mathematica: mat = {{0,0,1,1}, {0,1,0,1}} I want to repeat this matrix N number of times on the side. For example if N = 3 then ...
0
votes
0answers
19 views

General question about solving a large set of linear equations efficiently

In my research, I got a large set of linear equations, about 10 000 equations with more than 10 000 variables. It is not efficient to use "Solve", so does anyone know any way to solve the equations in ...