# 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.

3answers
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
2answers
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
6answers
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
3answers
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
1answer
{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
1answer
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
1answer
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
3answers
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
0answers
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
2answers
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
1answer
I have the following list: {{A, B, C, D}, {1, Sin, Cos, Tan}, {2, Sin, Cos, Tan}, {3, Sin, Cos, Tan}, {4, Sin, Cos, Tan}, {5, Sin, Cos, Tan}} I wo …
asked Apr 10 '18 by james
2answers
I have the following list of 2 equations (but generally I have much more than 2 equations): m= {A1*x+B1*Sin[x]-C1*Cos[x],C2+A2*Cosh[x]} How could I automatically convert it into a coefficient mat …
asked Oct 4 '18 by james
1answer
I have a lot of images and text that goes with each image. Now I would like to automatically generate the following handout for each pair of image and text: The image is on top. The text should b …
asked Oct 26 '17 by james
1answer
I have a set of images: im1 = Import[ "https://images.pexels.com/photos/67636/rose-blue-flower-rose-\ blooms-67636.jpeg?cs=srgb&dl=beauty-bloom-blue-67636.jpg&fm=jpg"]; im2 = Import[ "https://i …
asked Sep 4 '18 by james
1answer
I would like to import images which are frames from a video, they are numbered, so importing them in the correct order should not be a problem... However, when I import them, by writing: SetDirec …
asked Aug 8 '18 by james

15 30 50 per page