# Search Results

Results tagged with Search options user 44178
19 results

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

I have the following xy list: list = {{19, 21991.4}, {63, 5801.71}, {71, 5714.21}, {99, 2021.72}, {135, 850.353}, {165, 1897.}, {220, 2117.53}, {251, 2444.39}, {274, 25136.6}} I am just inter …
asked Aug 19 '18 by james
How can I find the position of the first element (here 5) of the last equal sequence (here 5,5,5) ? list = {2, 2, 2, 3, 3, 3, 3, 5, 5, 5} In this case: 8
asked Sep 6 '18 by james
I am trying to do the following: I have a list, say: a = {{1}, {2}, {3}, {4},{5},{6}} and a list which specifies the range: range = {{1, 3}, {4, 6}}; Now I would like to receive a list, which g …
asked Oct 25 '17 by james
I have this list: a={1,1,1,1,2,2,2,2,2,4,4,4,4,6,6,6,6,7,7,7,7} Now I would like to create a list with the ranges of positions of all same numbers, hence: range = {{1,4},{5,9},{10,13},{14,17},{18 …
asked Oct 26 '17 by james
{Thread[{a, b} -> {1, 2}], c -> 10} {{a -> 1, b -> 2}, c -> 10} How can I get rid of the inner brackets ? I tried: {Flatten[Thread[{a, b} -> {1, 2}]], c -> 10} but it does not work.
asked Mar 30 '18 by james
If I have a list like that: list = {1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1} how can I filter it in such a way that noisy input (like the 2, here) is replaced by the neighbouring values, like that: list = …
asked Aug 8 '18 by james
I want to make a function which computes a table of distances between 2d points. This is what I have done, but the table is twice as large as it needs to be. distance[p_] := Table[p[[i]] - …
asked Sep 29 '18 by james
ListPlot[list, Joined -> True, PlotRange -> Full] I would like a simple method to get the positions within the list where the values deviate a lot from their previous values. If I just use a thres …
asked Aug 14 '18 by james
I am continuously importing a text file which is written by another program and read in Mathematica. The text file gets updated in chunks, meaning that the text file is augmented by a certain number o …
asked Apr 20 '18 by james
How can I pause play in Manipulate when a condition is met ? Here is an example: Manipulate[ Plot[i*Sin[x], {x, 0, 10}, PlotRange -> 10], {i, 1, 10, AnimationRate -> 3, RefreshRate -> 60, Appeara …
asked Aug 8 '18 by james
I have the following list: {{A, B, C, D}, {1, Sin[1], Cos[1], Tan[1]}, {2, Sin[2], Cos[2], Tan[2]}, {3, Sin[3], Cos[3], Tan[3]}, {4, Sin[4], Cos[4], Tan[4]}, {5, Sin[5], Cos[5], Tan[5]}} I wo …
asked Apr 10 '18 by james