**4.958 list-manipulation questions.**

I am making plots for data, and what I get are some staircase-like plots. Data I have is usually like this, for x and y axis (...

I have two list of data
...

How to use Row[Table[{B[i],0,i},{i,0,2}],","] directly in Do command? I mean that the following command
...

Is there a way to take a 20x20 array and replace 2 random parts of this array with a 2x2 matrix?
I've tried rvalues = ConstantArray[r, {20, 20}];
to make the ...

Given a list with $n$ elements and an integer $k$ I want to get a list with all possible groupings of these n elements in sets with at most k elements. For example, given $n=\{1,2,3,4\}$ and $k=3$ I ...

I've tried to implement Breadth First Search algorithm in MMA, to attempt to solve the 8-puzzle game. But in some cases, I ran out of memory, but on other cases it solves without problem.
Here is the ...

For $n=5$, I have $32$ binary digits and for this there are $2^{32}$ combinations. Out of this many, the interesting ones (i.e., the ones that have monotone increasing binary digits) are only about "$...

I recently have been developing a project for my students to explore some functionality of the Wolfram Language and have requested that they investigate the timing for several different methods of ...

I created this matrix: latticeJ = ConstantArray[5, {20, 20}];and I want to randomly replace 20 values of this matrix with the value of 10 under the condition ...

I have a code in which I have to use some functions and lists and use them in the body of the code. If I want to type all of them in a file in Mathematica, that file becomes very very long. For ...

How can I isolate only the first order "h" terms in the following expression?
...

I have the following normNorm[{a, b*c}] // Sqrt[Abs[a]^2 + Abs[b c]^2]How do I remove the Abs from it?
...

Given a list aslist = {"2018-9-1",1,2,3,"2018-9-2","2018-9-3",4,5,6,"2018-9-5",7,8,9,"2018-9-6","2018-9-7",10,11,12,"2018-9-8",13,14,15,"2018-9-9",16,17,18}or
...

How can we change the value of boundary of a multidimensional Array with arbitrary rank.
I tried to extract the indicies with:
...

I have a long flat list that needs to be partitioned. The list is formatted so the "header" is repeated, followed by the values. Essentially, it looks something like this:
...

I want to find all the possible ways that 4 variables can be summed to a given number. Suppose I have the variables
$$x=x_0+x_1+x_2+x_3$$
I want to fill $x_0,x_1,x_2$ and $x_3$ such that $x_0$ and $...

Ive made a module to expand a list by reflections and translations. Here is the block.
...

I have asked a question here.
I want to reproduce the coefficients of a generating function of the form:
$$(1 + x)^2 (1 + x + x^2 + x^3+\cdots+x^n)^{n-1}$$
It is important that $x_0$ and $x_n$ to be ...

I have a long (approx. 4000 rows) list whose elements are in the form as follows:{{x,y,z},a,b,c}I want to count the number of elements ...

I am trying to find a sparse matrix of the size Col x Rows = 16777216 x 1024 where all the elements are 0 except the ones given ...

I want to use the command Permute to arrange the rows of a matrix. What I am looking to do is given a list I want to generate a new list which gives me the positions of the elements of the first list ...

This is a higher level question, and I don't expect a full answer, but maybe a nudge in the right direction would help, or maybe there is a built in Mathematica function that does something very ...

I have a matrix Mat1 whos columns are ordered as :Col = Flatten[Outer[{#2, #1} &, {0, 1}, Delete[Range[-2, 2, 1], 3]], 1]...

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

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

I'm computing an integral using two different quasirandom methods. (These correspond to the choice of parameters $\alpha_0= 0,\frac{1}{2}$ in the answer of Martin Roberts to How can one generate an ...

Select[Tuples[{1, 1/2}, {4, 4}], Total [#] == 15]I want to select all tuples in the result returned by Tuples that have total ...

I have a 2D list as follows:
...

Ok. I'm obviously not understanding something about pattern matching.
I have a list called t like the following:
...

I've been trying to get my y and z axes log-scaled on a 3D list Point Plot, for example (test data):
...

I have a list of integers with the zero removed Delete[Range[512/2, -512/2, -1], 257]and I want to get the elements before and after a number within the list. ...

I have a long list of strings and I'm trying to find a more efficient way of removing those elements that are prefixes of another:
...

I need to change the position of a single element in a list. Example: I start with:{a,b,c,d,e,f}I want to move the a before ...

I'm a new user of Mathematica and now I am confused by a problem.
Now I have about 2 million rows of data and 3 columns, i.e. a 2million*3 table. What I am trying to do is select rows of data ...

Question: What is the fastest way to obtain a table of values from a parametrized function?
For a function of x, which is a sum of ...

Thread can do thisThread[{a, {b, c, d}}]{{a, b}, {a, c}, {a, d}}But when above ...

I want to generate a list of $L$ and $S$ according to the following rule: upon each iteration, replace
$S \rightarrow L$
$L \rightarrow LS$
Such that, starting with $L$:
$ L \rightarrow LS \...

I have a function G[x,y,z,r,s,t] in the code below. Quite simply, I want to generate a list of all possible tuples $(x,y,z,r,s,t)$ such that all six entries are ...

I have table of function f[x,a]. For the sake of easy reproduction, let's limit it to a few entries - the original is over ...

I have a list a = {L, S, L, L, S} and I can find the position of of either L or S by:
...

I have some questions about programming in Mathematica and I would really appreciate it if you could help me.
I wish to plot the following function against the variable X, but to do this, first I ...

I have the following list consisting of a specified number of $(x,y)$ coordinates. Now I want to add the values of $y$ for which the $x$ values are same. For e.g. I want to convert the list $\{\{2,5\},...

Some background. I can use Mathematica to generate text book problems/exercises and corresponding answer in two "pairs/synched" lists $L_{Q}$ and $L_{A}$ (i.e. element 1 in each list is a Q&A pair,...

Say I have Part of a variable x.Part[x, 1]Then, I'll get an error message, as the ...

I have a list of random numbers. In each row there 5 numbers. I want to find the minimum value of the first column and extract the row where the minimum value placed there. How can I do it using ...

Let n and m be natural numbers. Then, how does one write a function ordint[n,m] that gives ...

I have a list of functions, each containing none or more of the functions Plus, Times, ...

I have a string list:lis = {"abc","def","def ghi","jkl","ghi","jkl"}I have another string list whose elements contain two members of ...

- matrix
- plotting
- performance-tuning
- functions
- filtering
- table
- pattern-matching
- programming
- replacement
- function-construction
- string-manipulation
- data
- map
- array
- combinatorics
- functional-style
- equation-solving
- sorting
- graphics
- import
- associations
- random
- permutation
- manipulate
- syntax

- Test a transistor with a multimeter
- What are the biggest pitfalls to avoid with student loans?
- When and why did Joey and Rachel break up in Friends?
- Is the summation of the same irrational number always irrational?
- Do immigrants use up more welfare?
- What consequences may occur as a result of driving a rental car in Austria without an International Drivers Permit?
- Optimization explained to a middle school kid
- gender neutral sanskrit word for "Putra"
- Is std::string guaranteed not to give back memory spontaneously?
- How to set Rules Cache Size
- What does "Gringo Price" mean?
- Examples of plant families that contain species that are safe for human consumption and species that are poisonous to humans?
- Is there any technical reason why, in programming, the default date format is YYYYMMDD and not something else?
- Mysterious loss of weight
- True color code
- Usage of Apollo Lunar Surface Hasselblad Camera with 500 mm lens?
- Can Counterspell be used as a Legendary Action by an Archlich?
- Why does the baseline skip depend on the letters depth in some fonts?
- Read Committed Snapshot, stale data reads?
- What are the consequences for a Warforged that does not spend 6 hours in its inactive state?
- How do you improve your scientific writing skills?
- Googling my name reveals silly things from when I was younger. I am embarassed. How will this affect me in my future academic career?
- Calculating entropy within xkcd 936: Password Strength
- Can I insist on GPL version 3.0 terms when requesting GPL code from an embedded manufacturer?