# list-manipulation's questions - Danish 1answer

4.724 list-manipulation questions.

### 2 Is there a PartDelete like there is a TakeDrop

1 answers, 64 views list-manipulation built-in-symbols
TakeDrop is nice because after taking a subarray, it also returns the remaining subarray. But it is limited in that the part specification can only be ranges, and ...

### 6 Select sub-sequences in lists?

Consider a list like the following onelist = { { a1 , {b1,c1} } , { a2 , {b2,c2} } , { a3 , {b3,c3} } };I would like to select a sub-sequence from this list ...

### 3 Simplify the use of Table together with FoldList

I am trying to recreate the following table,where you have the question mark. to do it occupy the following commands, but I would like to help me improve my code to make it more practical especially ...

### Binning with negative weights

0 answers, 38 views list-manipulation data
I have a long list of events consisting of pairs {{e_1,w_1},{e_2,w_2}, ....{e_n,w_n}}I want to bin the energies e_i and then sum the 'weights' w_i of all ...

### WeightedData Problem

1 answers, 24 views list-manipulation data
I have two lists, the first one containing energies the second corresponding weights, which I want to combine into a weighted data set by using WeightedData. ...

### How to show decimal points on the axes frames in mathematica?

3 answers, 91 views plotting list-manipulation
I have a set of data g1 and when plot using n1, i got the plot shown in figure below. I need to change the x-axis label from (1,2,3,4,5...) to (1.0,2.0,3.0,4.0,5.0) and y-axis label from (50000,...

### Applying a function, with some arguments already specified, to a list using @ [on hold]

0 answers, 29 views list-manipulation functions
Say I have some function F which takes on two arguments F[a,b]. If I have some list {a1,a2,...,an} is there an easy way using @ symbols to produce the result of F[{a1,a2,...,an},b]? I wanted to do ...

### Find the corresponding location

0 answers, 41 views list-manipulation fitting estimation
Let's say I have data points (y vs x) << data = https://pastebin.com/FR3xMwk8 >>, and it is shown in here. It is the intensity vs time of two different datasets. I collect some data sample from ...

### 1 Find the intersection of functions given by lists

How can the intersection of two functions that their values are given by lists. For example: ...

### 2 DeleteCases not working as expected

I am trying to reproduce the example of Data Cleaning from here. I had to make a slight change in input 13 to ...

### 2 Position in the list after a using a function

4 answers, 77 views list-manipulation functions
I want to generate a list after using a function. In this list the original position is important. ...

### 7 Creating a random matrix of no duplicates in both row and column from a given set list of elements

2 answers, 52 views list-manipulation random array
Say I have a list of letters {A,B,C,D,E,F,G,H}, I want to create an $4\times 8$ array where each row must not contain duplicates and each column must also not contain duplicates. Naively writing:<...

### 5 Converting a test mark list to a new list of consolidated marks

I have a function that takes in a list as an argument Each element in the list is in the form {test number,first name,family name,mark} or ...

### 3 Bin arbitrary data using canonical ordering

I have two lists of words, nouns and verbs: ...

### 4 How to use Nearest as a lookup function?

2 answers, 195 views list-manipulation data nearest
I have data1 and a target point targetPts, and want to find the closest point from the data. As you can see from below, the 29th ...

### 1 Applying Solve to a list of functions

1 answers, 23 views list-manipulation equation-solving
Given a list of functionsflist = {f[x, y], g[x, y], h[x, y], ...};I wish to some way apply Solve to flist to obtain ...

### 4 Is there a way to extract an element from a list of functions, before evaluating the numerical value of the function element in Mathematica?

1 answers, 41 views list-manipulation functions
Consider a list of functionsM[x_]:={Cos[x], Sin[x], x}Say I want to evaluate the first elementM[1][[1]]What ...

### How to Find minimum and maximum in Data? [closed]

I'm using a data, I need to find the maximum value between the points 15000-20000. ...

### 19 Generating a list of numbers that are not multiples of 4

17 answers, 4.542 views list-manipulation table
I want to write simple code that will list all numbers from $1$ to $n$ that are not multiples of $4$. And in this case I consider that ...

### 6 How to create a variable List

3 answers, 107 views list-manipulation programming table
I need, given "n", create a list {a1,a2,...,an}. For example: Given n=3, the list that must be created is composed by the symbolic variables {a1,a2,a3}. Sorry if this question is simple. Does anybody ...

### 3 How to get the coordinates of the closest point along a line?

I have a plot as below (the plot is just for illustration purpose. in my real problem, I just have pts1):- ...

### 2 Positions in array where points fall inside a circle?

I have a list of (x,y) coordinates, and I just want to get the elements in the list where the point x,y falls within a radius r. ...

### 1 List manipulation Interval Intersection

1 answers, 35 views list-manipulation intervals
I'm having some troubles manipulating a nested list: ...

### 5 How to increase the speed of DeleteDuplicates on some selected columns?

I have a data1 with 4 columns and would like to remove the duplications by looking at the first 3 columns. Thus I used below code:- ...

### 5 How to sort the data by several columns (some ascending and some descending)?

1 answers, 41 views list-manipulation sorting
I have sorted the data firstly by the 3rd column and then by the 2nd column as below:-a = RandomInteger[20, {30, 3}] SortBy[a, {#[[3]], #[[2]]} &]As you ...

### 8 Add lists with unequal lengths together to create a matrix

3 answers, 1.272 views list-manipulation matrix
I'm trying to create a stacked bar chart using raw data coming from a MySQL server. The result coming back from one query is: ...

### 4 Find the value fluctuating in lists

4 answers, 127 views list-manipulation matrix conditional
Suppose that I have the following lists of entries, ...

### 7 Find cycle length in a list

I have a list of lists of numbers:{{5,2,1},{8,1,3},{6,1,1,1},{8,1,3},{6,1,1,1},{8,1,3}}As you can see, they eventually cycle, but not immediately. I need a ...

### WhenEvent, Storing Sow data, Loops

My problem is essentially to do with manipulating and storing Sow data in a nested loop structure. I have a set of differential equations describing time-evolution of a bunch of variables. ...

### Different behaviour of List when imported from MX and CSV

On a sort of related question here, I noticed something odd about the behaviour of List. WhenImport["myCombinAnalysis.MX"]...

### create a list with common head [duplicate]

How to create a list like below by Table #& or others? j1, j2, j3, j4 ... j15...

### eliminate product terms in equation [duplicate]

2 answers, 65 views list-manipulation filtering
I would like to eliminate all terms that contain the product of dxy, dwz, and dxz, i.e. the final result should read as dxy +b dwz+ c dxz. Thanks in advance for any hint. ...

### 6 How to re-scale a matrix column and show the matrix in one line?

3 answers, 209 views list-manipulation matrix array
I have p = {{a, b, c}, {d, e, f}, {g, h, i}}; and q = p;, is it possible to combine the following 2 lines into 1 line (without <...

### 3 How to create a flat Table

1 answers, 74 views list-manipulation table
Is there any function to directly create a flat list of expressions as a function of multiple index variables, in other words a flat version of Table. What I mean is to have for example ...

### 2 Odd behavior of ArrayReshape with SparseArrays

0 answers, 22 views list-manipulation sparse-arrays
I am trying to understand why I am seeing inconsistent results when using ArrayReshape on a SparseArray vs. a normal nested <...

### 3 How to take a part from a list without evaluating it

Consider I have a list l ...

### 7 Creating a less random list

2 answers, 414 views list-manipulation random
I'm trying to create an list like {1,3,2,5,8,7,9}, or {2,1,5,6,4,7,9}, that the elements in each list is sorted in a rough order,...

### 1 Inserting a table data inside the function

0 answers, 35 views list-manipulation data
Consider a table with n columns and function f[x] depending on n coordinates, $x = x_{1},...,x_{n}$. I want to interpret the table as a set of points in n-dimensional space and calculate the function ...