Questions on filtering or selecting data based on certain criteria. This is to be used with primary tags such as list-manipulation, string-manipulation or signal-processing, with the primary tag indicating the specific use case.

learn more… | top users | synonyms (1)

2
votes
0answers
64 views

Filtering in frequency domain

I'm trying to modify a transfer function in the frequency domain by filtering it with a Butterworth filter. For example, let's say my transfer function is of the form : ...
1
vote
2answers
44 views

Discard Elements of list with given criteria

I have the following list: ...
1
vote
1answer
82 views

How to determine distance of periodic features in measured dataset

I have a list of x- and y-values associated with a measured height (z-values). Part of the list is plotted below. As you can see, there is a periodic arranged structure, namely a cross. Now I would ...
0
votes
0answers
56 views

Factor Integer function with variable arguments

I'm trying to build a function that gives the highest power of a prime factor of a number. The following works perfectly: ...
2
votes
3answers
232 views

How to use Select with lists

I am trying to do: Select[minimus[[6]], #1[[2]] < (min[[6]] + emin[[6]]) &] applied to all elements of minimus, ...
3
votes
4answers
175 views

select elements in a list

I am new in Wolfram Math and I need a help in making a simple program. Let's suppose we have a list: list = {{1, 11}, {2, 7}, {4, 2}, {7, 9}, {-2, 3}, {-1, 10}}; ...
4
votes
1answer
166 views

How to apply by-hand image selection to different images

Mathematica supports image selections by hand, by utilizing the selection tool. I used it to extract relevant data (hundreds of little squares). Now I have a second image of same size, where I want to ...
-1
votes
3answers
75 views

Create table of elements which belongs to specific sets

I would like to produce elements (preferably by Table or For-If commands) that they belong to specific sets. For example I want to write positive integers from 1 to 100 such that they are $2 \pmod 3$, ...
0
votes
1answer
35 views

How to find the lowest power in multi-variable expression?

I am sorry for asking similar question again, I asked How to find the lowest power of variable in expression? and I got wonderful answer, but I have a more question for multi-variable expression. One ...
2
votes
2answers
86 views

How to find the lowest power of variable in expression?

If I have expression like a1/x +a2/x^2 + a3/x^3 I want to return 1/x^3. In general case, ...
5
votes
2answers
93 views

Is there a function that will transform the values of an association while deleting some that match a criteria?

I am looking for something better than Select[Map[f,a],test] As Map will work over the entire association (a) and then Select will work over all of the results. ...
1
vote
4answers
141 views

Non-rectangular pick of elements of a matrix

How to pick elements of a matrix that are inside a circle centered at the center of the matrix?
1
vote
2answers
92 views

How to make some mess points to be more smooth?

Background: The question is derive form this post.I have a another thinking about it.Some points in a suface you can give a certain equation but some points you cannot.So I wanna get a method to ...
4
votes
2answers
129 views

Use Select to filter a dataset's sublists

In the following Dataset, I want to use Select to display only rows, which contain numbers in column ...
0
votes
0answers
52 views

Engineering spectral densities using filtered white noise

My goal is to create time-spectrum noise signals with spectral densities $S_{xx}(f)$ for pretty much arbitrary spectral densities (think white noise, lorentzian, $1/f$). In finding advice on how to do ...
3
votes
0answers
56 views

Searching a deeply nested list [closed]

I have a deep nested ragged list. ...
4
votes
2answers
198 views

Replacing numbers of which you only know certain digits

If I have a list of numbers like this: list = {0.3565127, 0.8656421, 0.231479879, 0.39698787, 0.536987651}, which are all between 0 and 1, each having lots of ...
4
votes
1answer
111 views

Associations complement

So I'd like to complement two associations through shared keys... not the best description, so here's an example: ...
15
votes
7answers
1k views

How do I delete all items that occur more than once?

DeleteDuplicates works fine but leaves a single copy of the duplicated item. I need to remove all items that occur more than once i.e. {{1,2},{1,2},{3,4}} -> ...
0
votes
1answer
52 views

Filter pattern from a list

I have group elements, that I'd like to condense down according to group rules. Take the modular group. This has generators $S,T$ that satisfy the groups relations $S^2 = I, (ST)^3 = I$. So given a ...
4
votes
2answers
71 views
0
votes
1answer
34 views

Picking some elements of a matrix and generating another matrix [duplicate]

If we have a nested matrix as: start={ {{1, 2, 2, 3}, {1, 1, -2, 1}, {3, 2, 2, -I}, {1, 2, 0, -I}}, {{3, 4, 4, 0}, {1, 1, 4, 1}, {3, 3, 4, -1}, {1, 1, 2, I}} } ...
2
votes
1answer
37 views

wrong result of an iteration related to replacement and comparing

We have two nested matrix and a code for replacement following an equality as: ...
16
votes
5answers
624 views

Easiest/most efficient way to delete duplicates from one list at the positions of another?

This question is somewhat related to How to efficiently find positions of duplicates? , although I'm interested in something a little bit simpler since I'm not really interested in a list of all the ...
1
vote
1answer
36 views

Choosing sets from Subsets[list] part 2

Piggybacking off of this question, say if I wanted to exclude sets which weren't the union of elements of the list of lists. For example: ...
6
votes
5answers
156 views

Choosing sets from Subset[list]

Say I have a set, S, and I take Subsets[S] (the power set of S). For example: S={a,b,c} Subsets[S]={{}, {a}, {b}, {c}, {a, b}, {a, c}, {b, c}, {a, b, c}} How can ...
1
vote
0answers
53 views

Select complex mutiple row [closed]

How can I make this select on Mathematica? Is possible?
2
votes
2answers
56 views

Remove an element of a list [duplicate]

I want to check if any element of a list contains Missing["NotAvailable"] If so I want to delete the entire list. If I am correct I need to have some ...
1
vote
1answer
91 views

Manipulating Some Lists in Compile

Consider a list of lists, such as: Z={{1,4,3},{2,1,3},{3,1,4}} Z is an $n \times n$ matrix (here $3 \times 3$) which ...
7
votes
2answers
147 views

Get association element that has a parameter

Say I have an Association of the form: assoc = <|first->"abc", second[param]->"xyz"|> Now to access ...
6
votes
5answers
143 views

Simple Enumeration of Coin Tosses

How do I enumerate a sample space with up to 6 coin tosses where 4 Heads ensures a win. For e.g {HHHH},{HTHHH},{TTHHHH},{HTTHHH} etc.I tried the following but I do not know how to do a variable length ...
1
vote
0answers
39 views

select year 2014 from an object [closed]

could you help me to filter the year 2014 from the following object: data={{2013.09.17, 60.},{2013.10.07, 100.}, ...... } Basically I just want to select one ...
6
votes
3answers
73 views

Using Select on a 2d table with a criteria that accepts 3 parameters

I have a table sets := Table[{i, j, k}, {i, 1, 10}, {j, 1, 10}, {k, 1, 10}] and I want to use a function that accepts three parameters and returns a boolean, as ...
2
votes
3answers
154 views

select from a list of disks

I have the following list of centers of disks. ...
1
vote
1answer
40 views
2
votes
0answers
44 views

Performance of different Count patterns

The two pieces of code below are functionally equivalent, and I would have expected similar performance. (The only difference between the two is the form of the pattern used.) But the second piece of ...
4
votes
6answers
422 views

Remove the odd element from a list

I have a list, which contains more lists with elements, see example {{1, 1, 1, 1, 2}, {2, 2, 2, 2, 3}, {3, 3, 3, 4, 3}} I want to remove num 2 from the first list ...
4
votes
2answers
144 views

With “named row” nested Datasets: How to Select or Filter rows by row key with criteria from another Dataset?

After some calculations and grouping I have a Dataset similar to the following form: ...
7
votes
3answers
225 views

Deleting any list that contains a negative number

We had another nice question in a student activity today. The increasing sequence of positive integers $a_1,a_2,a_3,\ldots$ has the property that $$ a_{n+2}=a_n+a_{n+1} \text{ for all } n\ge 1. $$ ...
1
vote
2answers
195 views

How to speed up a For-loop [closed]

My code is the following: ...
5
votes
0answers
114 views

How to implement a Kalman Filter

Below I use low level code to reproduce the example of a Kalman Filter on pages 16-20 found here. First I create the data. ...
1
vote
2answers
96 views

Get value from InterpolatingFunction

I'm trying to find My[t], Mx[t] and Mz[t] values when evaluated at ...
1
vote
1answer
35 views

Select on 3D-table along diagonal

I have the following data set on the form (x, y, z) ...
7
votes
6answers
381 views

How to select sub-lists having at least one element that matches a pattern

This will probably be a very easy question, yet although I did find a relatively similar one, I couldn't use the answers there to solve my problem (I'm still a novice). I'm simulating 10 blocks of ...
3
votes
1answer
123 views

Using Select with Alternatives

I want to select the elements of a list like: ...
4
votes
2answers
91 views
14
votes
4answers
289 views

Fast Selections Testing on Inequality

Is there a functional idiom for fast selections testing on inequality? For example, finding values from list a & b where the key is less than or equal to a value, in this case 4 or 9. An ...
4
votes
1answer
226 views

Select elements of list

I have a list of lists list={l1,l2,l3,l4,...}; and two elements e1,e2. I want to select from lists ...