Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 1178

Questions on the manipulation of List objects in Mathematica, and the functions used for these manipulations.

2 votes

How to pick an element of a row corresponding to the minimum in a particular column?

Beware of the possibility of multiple minima, especially in long lists of discrete elements. I think for a novice J.M.'s solution is the more instructive. I have changed its first element to demonstr …
Romke Bontekoe's user avatar
8 votes

Sorting a list with secondary criterion

Coming from a long experience in Perl, one of my great disappointments in Mathematica was the tricky business of sorting multidimensional lists and strings. Sort orders strings as in a dictionary, w …
Romke Bontekoe's user avatar
5 votes

Error with using ReplaceAll

One way is not using ReplaceAll, but data[[1 ;; 2]] = {{{3841, 6870}, {3822, 6869}}, {{3922, 6869}, {3941, 6870}}} which overwrites the first two elements. The remainder of the list remains the same …
Romke Bontekoe's user avatar
6 votes

Generating all possible 2x2 matrices with unique elements from 1 to 4

Annotating my comment. The expression Permutations[{1, 2, 3, 4}] generates all 24 permutations of the list {1,2,3,4}. For example, the list {3,1,4,2} is one of those. In order to construct a 2x2 matri …
Romke Bontekoe's user avatar
6 votes

How to split a number

Processing dates by integers is extremely error-prone. Here is an example from the excellent book by Paul Wellin (p.598). Compare this DateList[19001231]; Take[%,3] (* Out: {1900, 8, 8} *) with this …
Romke Bontekoe's user avatar