Mathematica Weekly Newsletter
Mathematica Weekly Newsletter

Top new questions this week:

How can I manipulate TemporalData?

Version 9 introduced TemporalData but, truth be told, the documentation doesn't suggest that one can do much with it. Many of us have probably assumed we'd be better off sticking with the date-value …

undocumented temporaldata  
asked by Verbeia 15 votes
answered by Verbeia 18 votes

Looking for a way to insert multiple elements into multiple positions simultaneously in a list

I would like to take the following data: insertvalues = {r, x}; insertpositions = {{1}, {5}}; origlist = {a, b, c, d, e, f, g}; and generate output that looks like this: {r,a,b,c,d,x,e,f,g} …

insert functional  
asked by Todd Allen 14 votes
answered by Mr.Wizard 17 votes

Automatically close Mathematica

It seems there are a lot of related topics but I haven't found an answer. I want to automatically quit Mathematica after some procedures are done but dialog window appears: 1 + 1; …

front-end notebooks  
asked by Kuba 11 votes
answered by John Fultz 11 votes

Encrypt the password used for SendMail

I want Mathematica to send me an email when the computation is finished. To that end, I have a cell with SendMail[...] which I place behind my computation in the evaluation queue. The problem I have …

email security  
asked by simsurace 11 votes
answered by Murta 10 votes

Constraint syntax compaction

Is there a more compact way to represent these constraints: NMaximize[{a+b+c,a <= 5 && b <= 5 && c <= 5}, {a,b,c}] like for x in {a,b,c}, x <= 5 or something.

syntax mathematical-optimization expression-construction  
asked by Neal Alexander 11 votes
answered by Pinguin Dirk 13 votes

Detecting and correcting gradational brightness variations in a grayscale image

I am trying to quantify the proportions of various components in a greyscale image (backscattered electron image of a polished rock sample). Here is the original image: bse = …

image-processing  
asked by geordie 10 votes
answered by Simon Woods 5 votes

Select and Blank

I try to filter sublists of a list which match a pattern. test = {{"String1", "a"}, {"String2", "b"}, {"String3", "a"}, {"String4", "a"}}; The result should be: result = {{"String1", "a"}, …

list-manipulation pattern-matching  
asked by RMMA 8 votes
answered by halirutan 13 votes

Greatest hits from previous weeks:

Creating legends for plots with multiple lines?

So I have a graph with multiple lists, for e.g. data = {{1,2}, {3,4}, {3,5}, {2,3} . . .} If I then do ListLinePlot[Table[{#1,Log[b,#2]}&@@@data, {b,1,10,2}]] I have no way to generate a legend …

plotting legending  
asked by Eiyrioü von Kauyf 35 votes
answered by Jens 68 votes

Having used Mathematica as a "gateway" language, where to from here?

I have been using Mathematica for about a year. It is the first language that I have attempted to learn. I'm still very much a newbie, but there are moments I feel more like I am waving than drowning. …

programming  
asked by geordie 33 votes
answered by Leonid Shifrin 33 votes

Can you answer these?

Setting Up Lightweight Grid On Multiple Clients Programmatically

I have a number of computers which all might need to use the same (client) configuration for the Wolfram Lightweight Grid at some point. I know that there are ways to programmatically set certain …

parallel options configuration  
asked by evanb 1 vote

How to batch run Mathematica code from Python?

I have this notebook: arg1 = "input.txt"; arg2 = "output.txt"; u1 = Import[arg1, "Table"]; u2 = u1(*extremely complicated and long chain of operations*); Export[arg2, u2] and I would like to run it …

script python  
asked by Danvil 2 votes

NDSolve for a large system of coupled (complex valued) ODEs

The system under consideration here is a generalization of the one I discussed in this problem. Qualitatively, I am trying to solve a system of coupled nonlinear (up to order 4 in the dep variables) …

differential-equations  
asked by Nick P 1 vote
Subscribe to more Stack Exchange newsletters


Unsubscribe from this newsletter or change your email preferences by visiting your subscriptions page on stackexchange.com.

Questions? Comments? Let us know on our feedback site. If you no longer want to receive mail from Stack Exchange, unsubscribe from all stackexchange.com emails.

Stack Exchange, Inc. 110 William St, 28th Floor, NY NY 10038 <3