5
votes
6answers
360 views

Indexed Map Thread

I'm attempting to MapThread a function of two lists that requires the index of the list values. For example, MapThread[#1*i+#2*j&,{{a,b,c},{e,f,g}}] Where #1 ...
4
votes
0answers
52 views

Wrong autogenerated package from notebook containing #key and Part as subscript

Bug introduced in 10.0.0 and persisting through 10.1.0 or later Mathematica v10.1.0, under Windows 8.1 x64 Mathematica v10.0.2, under Windows 1) Define a function in an initialization cell: <...
0
votes
1answer
80 views

Is there a function or option to collect factors under one radical sign?

One of the things that frustrates me most about Mathematica's symbolic manipulations is the fact that output is often presented quite differently than most humans would write it. This is especially ...
2
votes
1answer
81 views

Simplify on a structured array

Why doesn't Simplify and FullSimplify operate on object generated using SymmetrizedArray? ...
10
votes
1answer
180 views

Enigmatic message about MaxBend

Referring to the method I proposed for Problem with ParametricPlot Mathematica 10.0.2 throws an enigmatic error message: ...
4
votes
1answer
306 views

NDSolve to solve a PDF

I would like to solve numerically the following PDE: $$ \frac{\partial}{\partial t} p(x,t)=-\frac{\partial}{\partial x}p(x,t)+\frac{1}{2}\frac{\partial^2}{\partial x^2}[x^2\,p(x,t)],\;x\ge0,\;t\ge0, $$...
0
votes
0answers
61 views

Integro differential eq boundary difficulties

I'm trying numericaly solve simple integro-differential equation, but have some problems with boundary conditions. System: ...
2
votes
0answers
45 views

Calculating number of discernible colors in CIE La*b* space

How can Lab space be easily splitted into unity cubes and determined number of cubes that colours of certain image occupy?
3
votes
2answers
80 views

Is there a function for “flattening out” and setting to 0 an expression?

For example if I have some complicated expression (all variables are positive integers) but I want to multiply everything out so there are no denominators and then rearrange so that it is equal to 0, ...
4
votes
4answers
160 views

Express block matrix in terms of matrix basis

I'm trying to construct a function that returns the multiplication table of a matrix Lie algebra. Assuming a basis of matrices, my definitions: ...
1
vote
3answers
149 views

How to do a Check for every element in the list?

I know how to do a Check for the list in general: ...
3
votes
3answers
178 views

How can I stop Mathematica from omitting Axes on a Plot?

I'm trying to plot something using Plot[], and Mathematica keeps leaving off one of the axes. I can set Axes->{True,True}, ...
0
votes
2answers
55 views

Different behaviour of Map and Inner in replace rules

Why does x[{1, 2}] /. {x[l_] -> Map[func, l]} {1, 2} not behave as expected, while for example ...
1
vote
5answers
166 views

How to split list to strings?

Considering a list: lst = {"1", "2", "3", "4", "5", "6"} How can I have two strings : str1 = "1, 2, 3" str2 = "4, 5, 6" ...
2
votes
1answer
73 views

`ResamplingMethod -> None` in `TimeSeries` does NOT take any effect in v10.1

Possible bug in v10.1 ResamplingMethod -> None in TimeSeries does NOT take any effect in v10.1. Try: ...
0
votes
1answer
176 views

Add elements of one list to sublists of another list [duplicate]

I have the following list of sublists with different lengths {{1,1,1},{2,2},{3,3,3,3}} and a second list {4,5,6}with the same ...
6
votes
1answer
82 views

Is there a way to Collect[] for more than one symbol in Mathematica 10.0?

This question has already been asked three years ago (Is there a way to Collect[] for more than one symbol?) but I'm not allowed to comment since I'm new at Mathematica StackExchange. The first ...
6
votes
2answers
486 views

Efficient way to perform local Otsu thresholding on image

I have images of cell nuclei that have locally varying intensity distributions. Therefore, I need a robust local threshold algorithm. LocalAdaptiveBinarize works ...
25
votes
3answers
457 views

Bug in MovingMap (breaking change between version 10.1 and 10.0.2)?

The MovingMap window spec has been changed between version 10.1 and 10.0.2. Version 10.0.2 ...
1
vote
2answers
398 views

How to generate a random, relatively prime number to p?

I'm sorry if this is an obvious question, but I'm a newbie and googling didn't help me much. Is there a way in Mathematica to generate a number q coprime with <...
1
vote
1answer
86 views

calculate variance of conditional sum of Normals

Let $\quad W \sim N(\mu_0, \sigma_0^2), \quad X_1 \sim N(\mu_1, \sigma_1^2), \quad X_2 \sim N(\mu_2, \sigma_2^2)$ denote independent random variables, and let $c$ denote a constant. I want to find ...
0
votes
1answer
123 views

3D scatter plot with labels [closed]

I am doing 3-D scatter plot with labels and using the following code ...
5
votes
2answers
125 views

Combining memoization and SlotSequence

I found myself writing memoizing code like this: ...
4
votes
3answers
417 views

How do I plot a filled cylinder in 3D?

All, I'm trying to plot a filled cylinder in 3D using Graphics3D and then take 2D slices of said cylinder. I know that Cylinder is officially 'filled', but the 2D ...
0
votes
2answers
131 views

Help in evidencing a region (circular) of a .tiff image and cropping all the rest of the image

I'm asking for the community help since I have problems in cropping an image. I'm having LEED images which are 576*720p, which are made by a big black region at which middle I have the image I'm ...
0
votes
0answers
30 views

How to use ScheduleTask in a dynamic module? [duplicate]

I have a little timer widget that times two separate tasks: It is simple enough, but I can't see why it's not working. Am I not understanding the connection between ScheduleTasks and Dynamics? ...
4
votes
0answers
71 views

What is the purpose of Refresh? [duplicate]

I never quite understood the point of Refresh. Why would I do this: Dynamic[Refresh[DateString[], UpdateInterval -> 1]] when it is the same as ...
9
votes
1answer
263 views

Why don't products of Dirac deltas integrate correctly?

Bug introduced in 10.0.0 and fixed in 10.0.1 The integral $\int \int \ \delta(x) \delta(y) \ dx dy=1$ evaluates to 0 in Mathematica ...
12
votes
1answer
158 views

How can I easily visualize density plots with singularities with the least loss of detail?

I'm trying to visualize electric fields. StreamPlot is helpful: ...
1
vote
4answers
135 views

Mean duration between two specific data points

I have dataset such as: ...
0
votes
0answers
45 views

How can I export a notebook into multimarkdown? [duplicate]

Mulitmarkdown (.md filetype) is a very nice document format that supports rendering mathematical expressions like latex or mathml, rendering syntax highlighted code blocks for any language, as well as ...
3
votes
4answers
130 views

How to combine selected out cells into a list? [closed]

I have a loop that was printing out results, and now I'm left with many cells in different sections and I need to combine them (the values in them) into a list I can work with. For example, applied to ...
3
votes
2answers
76 views

Two bit strings represented as lists – how to color differing bits as red while printing?

Assume the following code generatedMsg = {1, 0, 0, 0, 1, 1, 0}; transmittedMsg = {1, 1, 0, 0, 1, 0, 0}; Now, I want to print out something along these lines: $$ ...
1
vote
1answer
618 views

How to plot the graph of the equation F[x,y]=0 if y is real number, x is complex? [closed]

I have an equation F(x,y;a,b,c,...)=0, where x and y are variables, a,b,c,... - parameters. y is a real number, x - complex. For every given y I need to solve this equation, i.e. to find Im(x) and Re(...
0
votes
0answers
22 views

How to monitor parallel mapping a function over a list? [duplicate]

For instance, how to monitor the progress of ParallelMap[function, list]?
12
votes
3answers
315 views

Is there any faster implementation of DominantColors?

The function DominantColors is a simple function but runs incredibly slow when the number n of dominant colors to find is large - it is currently the biggest bottleneck in my code: ...
2
votes
0answers
55 views

How do I print multiple slides per page?

I have a Mathematica 10 presentation (not made by me). The slides are very short and very many. I'd like to print it, but printing 100+ pages each with 2 or 3 equations seems like a waste to me. Is ...
2
votes
0answers
72 views

Why are the labels twitching vertically in TimelinePlot?

Why are labels jumping up and down here: ...
0
votes
1answer
165 views

Unable to Solve (for arclength parametrization)

I am having trouble with Mathematica while trying to re-parametrize a curve with respect to its arclength. I need to get the old parameter s written in terms of arclength a so the code is ...
2
votes
2answers
226 views

Filling graph between lines and plots

I would like to create a filling delineated by the plots and lines as specified below: ...
0
votes
1answer
139 views

Suppressing tiny imaginary parts in complex numbers [closed]

How do I extract the real part of a substitution expression from FindRoot or Solve? Or alternately, how do I insist that they ...
5
votes
2answers
238 views

Create a list of rules built from data set fields

I want to convert a dataset to a list of features and a list of target values, for use in Predict and also more generally. I know ...
1
vote
1answer
140 views

Solving equations bounded by a region

Straight to the point I have a function ...
1
vote
1answer
96 views

How can I get symbolic orthonormal eigenvectors for 3 by 3 hermitian matrix?

Using the following syntax, I can obtain the symbolic eigenvalues and eigenvectors of the following Hermitian matrix (a,b,c,d are all real parameters): ...
0
votes
1answer
38 views

Strange behaviour of Append [closed]

I have the following situation and I completely do not understand why the second system can be solved but the first (of the same equations, as it seems) cannot. How is it possible? ...
1
vote
1answer
52 views

How can I give each section a unique <a> tag when I Export as XHTML?

Exporting a notebook as XHTML allows me to override the default HTML tags that are written for section-header-like cells. For example, a notebook cell whose type is "Section", containing text "The ...
0
votes
4answers
142 views

Make a program that does union of two lists

I have to make a program that gives as a result the union of two lists using a For loop. I can't figure out how to inspect if the elements of a list are different. ...
0
votes
0answers
47 views

Bincounting multiple data

I have 5number of single column data files and I imported all of them using data = Table[Import["hist501" <> ToString[i] <> ".txt", "List"], {i, 5}]. Now I want to determine the bincount of ...
3
votes
0answers
175 views

Is there a way to profile Mathematica code in batch mode?

I'd like to profile some Mathematica code to figure out why it's running slowly. Since the code takes about a day to run, I can't use the Wolfram Workbench GUI. Is there a way to run Wolfram Workbench ...
0
votes
1answer
94 views

Mathematica: issues storing nested list on disk

having trouble with mathematica using nested lists. I want to save a list like this: l1={{a1,{a,b,c,d,e}},{a2,{f,g,h,i}}} So, the nested components do not have ...

15 30 50 per page