list-manipulation's questions - English 1answer

5.019 list-manipulation questions.

I have a list of tuples like this:{{1,a,b},{1,1,b},{1,a,a},{b,a,1},{b,a,b}}I would like to find a way to delete all those tuples in the list that contain a ...

I try to convert this code Matlab code: ...

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

Currently i'm stuck at problem, where i have a sets of points, and I wish to plot these point with different plot markers, and also with different plot legend. The code is the following: ...

Question The Mathematica tutorial has a section 'Basic Matrix Operations', describing operations like transpose, inverse and determinant. These operations all work on entire matrices. I am missing a ...

I have a large list of uniform-length lists. What is an efficient way to delete component lists that contain duplicates? For three-item sub-lists, I have used the following code: ...

Assume that we have a 3D array x, and we would like to split it into 2D slices then cut every slice into some small patches and get all patches in single list ...

Below, I have included some data. (It is long, but I don't like to host data elsewhere and provide links that might some day be broken.) Plotting this set of data,...

I am trying to put a 16x16 complex matrix in a row, with separated columns to real and imaginary parts (i.e a 1x512 matrix). Additionally this 16x16 matrix is generated by an operator ...

Here I am going, as a matter of illustration, make a large string list: l = Characters[WordList[]]; l = Table[DeleteDuplicates[l[[i]]], {i, Length[l]}];This ...

Having a list as follow: l = {x1, x2, x3, x4, x5};I want to add each element with the element before, so I did: ...

I need to select from a list containing equations those having RHS not zero ...

From some calculation, I have a distribution of discrete data $(i,P_i)$ and then want to get the median based on this distribution. Naive way is to create a list ...

I am new in this community so forgive me if this is a sort of re-post. I am trying to convert this MATLAB script: ...

I have the list: ...

I have a list of points as you can see in the image below. From this list of points, I want to generate a filtered list of points, which is the envelope. Additionally, calculate the area under the ...

I want to replace an element of a matrix by a function of its current value. The code I'm using is as follows ...

I have a list of messy equations, called question: ...

I have a list like this. How do I traverse the sublists to remove all the 1.'s but leaving the structure intact? I have attempted with Drop[list, {1}] but this ...

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

Suppose we have a list containing four sub-lists like that ...

I have a question about the list of points - in the list below I would like to change the 3rd value of each point to another - like this: {x, y, 0} to (x, y, 0.08} ...

I have three lists: ...

(Apologies for the long question title.) One of the interesting, if sometimes confusing, things about Mathematica is that there is always more than one way to do things. Even intermediate users can ...

I need to visualize a sequence, with the ability to emphasize certain segments. For example, take this sequence seq: ...

Consider :list = {100,102,103,99,106,107,104,112}I want to consider, extract only the "big moves" of that time series. In this case the moves bigger then 5 ...

Consider a situation when we need to create a table of tables, e.g., forTablei[i_] = Table[{a[i,j], b[i,j]},{j,0,LargeNumber,1}]Create ...

What I would like to do is the following. For a given list of elements; say (0,1,2,3,4) I would like to obtain all possible combinations of five, but not the ones with ANY repeated values. That is I ...

If I want to count the number of zeros at the (right) end of a large number, like $12345!$, I can use something like:Length[Last[Split[IntegerDigits[12345!]]]]...

I defined this function: swapTwo[{}]:={}; swapTwo[{e_}]:={e}; swapTwo[{e1_, e2_, e3___}]:={e2, e1, e3};or ...

I have the following list:l={"apple","orange","kiwi","APPLE","lemon"}How can I make a command so the capitalised word would be returned? So in this case the ...

I would like to select elements from 2D list according to variable position (i.e. stride). For example:x=Range@25 ~Partition~ 5I want a command to select ...

I am new to working with large datasets.. Currently I am struggling to upload a "big data" file into Mathematica. The file is in the CSV format and has 14GB. There are 100 millions of rows and 30 ...

I have the following long functions f1and f2 dependent on parameters ω and ...

I have data of following form. data = {{1, multi1(z1, z2,..)},{2, multi2(z1, z2,..)},...} I want to add up all the coefficients of corresponding multinomial (and also want to perform different ...

Suppose I have the following listlis = Range[100];and I want to remove n consecutive terms periodically from the list. For example suppose I want to drop terms ...

I wrote a code for partitioning a list. I want to group them into two groups following the same pattern: 1. element added, then 2. and 3. are omitted, then 4. and 5. added and goes like this. ...

Assume I have a matrix. (mat = Partition[Range@9, 3]) // MatrixFormmat$=\left( \begin{array}{ccc} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & ...

Let A and M sets of numbers, with Length[A]=15. I want to do something like ...

If I have a list for example : {{4,1},{9,2},{16,3},{25,4}}Is there a command that replaces the first element by its square root and returns a list ? In the ...

I have the following matrix: ...

I want to create a ListDensityPlot of T vs k, and to do so I am not able to achieve an ...

I need to find how well several different lists match a reference list. I'm looking for a percentage or some kind of similarity score. For example, ...

I have french subscript file here: https://uploadfiles.io/iehon If you download it an open it with Word, you can see that the math sections are but between $<i>$ and <\i>: To import the ...

I have a list where some elements are strings or sublists: ...

Say I have a matrix of random integers, which is given byA=RandomInteger[25, {9, 11}]How can specific columns of this matrix (say 4th and 7th columns) be ...

Given a list of integers, find the largest sum of a contiguous sub-sequence.{1, 2, 3, 4, 5, -1, 7, -4, -2} (* 21 *)And print the sub-array which is ...

Assume I have two lists: A[1,1]={1,2} and A[2,1]={3,4}. When I create a table ...

This is an extension of this question. I have xyPairsAll, which is a matrix holding sublists. It looks like ...

how does Positionwork for array? In particular if i have something like this: ...

Related tags

Hot questions

Language

Popular Tags